]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mimecmn.cpp
a better fix for notebook page not being refreshed after Delete()
[wxWidgets.git] / src / common / mimecmn.cpp
index a760575ad9c93312d2739da809716bb43ef4ac1d..ec2f6695a433db3842f6864263136b3d8fd4610c 100644 (file)
@@ -328,6 +328,18 @@ wxFileType::GetOpenCommand(wxString *openCmd,
     return m_impl->GetOpenCommand(openCmd, params);
 }
 
+wxString wxFileType::GetOpenCommand(const wxString& filename) const
+{
+    wxString cmd;
+    if ( !GetOpenCommand(&cmd, filename) )
+    {
+        // return empty string to indicate an error
+        cmd.clear();
+    }
+
+    return cmd;
+}
+
 bool
 wxFileType::GetPrintCommand(wxString *printCmd,
                             const wxFileType::MessageParameters& params) const