]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mimecmn.cpp
Fix warning for unknown menu stock id.
[wxWidgets.git] / src / common / mimecmn.cpp
index 680d57fc28843f735cde1ab9f715634d45022352..db1cf082f363404ac8d1dc6f1a8e92e3621d0261 100644 (file)
@@ -34,9 +34,9 @@
     #include "wx/string.h"
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/module.h"
 #endif //WX_PRECOMP
 
-#include "wx/module.h"
 #include "wx/file.h"
 #include "wx/iconloc.h"
 #include "wx/confbase.h"
@@ -527,6 +527,8 @@ wxMimeTypesManager::~wxMimeTypesManager()
 
 bool wxMimeTypesManager::Unassociate(wxFileType *ft)
 {
+    EnsureImpl();
+
 #if defined(__UNIX__) && !defined(__CYGWIN__) && !defined(__WINE__)
     return m_impl->Unassociate(ft);
 #else