]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mimecmn.cpp
Hopefully corrected conversion buffer size.
[wxWidgets.git] / src / common / mimecmn.cpp
index 6ee6a7a7fa08d1717e60f47798d342664c5f61ae..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
@@ -626,6 +638,7 @@ public:
         {
             delete gs_mimeTypesManager.m_impl;
             gs_mimeTypesManager.m_impl = NULL;
+            gs_mimeTypesManager.m_fallbacks.Clear();
         }
     }