Bug 590202 - Meego Qt with meegotouch style plugins trying to initialize them always if Qt style "non-meego" not selected
authorPetersen Jan Arne <ext-jan.a.petersen@nokia.com>
Tue, 24 Aug 2010 10:00:48 -0700
changeset 51360 146fcfa5fbcf6b5b1a68beba58b3624293eedb45
parent 51359 8a76e56cd89d71a869ec297efe81086c7e0a1158
child 51361 ec2dd928604c94be628a7d0fa251247ede456f8a
push idunknown
push userunknown
push dateunknown
bugs590202
milestone2.0b5pre
Bug 590202 - Meego Qt with meegotouch style plugins trying to initialize them always if Qt style "non-meego" not selected And it crashes because we don't have MApplication initialized in child process r=oleg
toolkit/xre/nsQAppInstance.cpp
--- a/toolkit/xre/nsQAppInstance.cpp
+++ b/toolkit/xre/nsQAppInstance.cpp
@@ -48,16 +48,19 @@ QApplication *nsQAppInstance::sQAppInsta
 int nsQAppInstance::sQAppRefCount = 0;
 
 void nsQAppInstance::AddRef(void) {
   if (qApp) return;
   if (!sQAppInstance) {
     const char *graphicsSystem = PR_GetEnv("MOZ_QT_GRAPHICSSYSTEM");
     if (graphicsSystem)
       QApplication::setGraphicsSystem(QString(graphicsSystem));
+#if (MOZ_PLATFORM_MAEMO == 6)
+    QApplication::setStyle(QLatin1String("windows"));
+#endif
     sQAppInstance = new QApplication(gArgc, gArgv);
   }
   sQAppRefCount++;
 }
 
 void nsQAppInstance::Release(void) {
   if (sQAppInstance && !--sQAppRefCount) {
     delete sQAppInstance;