]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appcmn.cpp
_really_ fixed translation messages
[wxWidgets.git] / src / common / appcmn.cpp
index 32c2fe5e00f4b8026d7726a49faef94cc0336d96..8090d33ea5fb443b2d8c58d9714eb5a4823601d6 100644 (file)
@@ -121,9 +121,6 @@ bool wxAppBase::OnInitGui()
 #ifdef __WXUNIVERSAL__
     if ( !wxTheme::Get() && !wxTheme::CreateDefault() )
         return FALSE;
-    wxArtProvider *art = wxTheme::Get()->GetArtProvider();
-    if ( art )
-        wxArtProvider::PushProvider(art);
 #endif // __WXUNIVERSAL__
 
     return TRUE;
@@ -385,6 +382,8 @@ bool wxAppBase::OnCmdLineParsed(wxCmdLineParser& parser)
             return FALSE;
         }
 
+        // Delete the defaultly created theme and set the new theme.
+        delete wxTheme::Get();
         wxTheme::Set(theme);
     }
 #endif // __WXUNIVERSAL__