QTfrontend/main.cpp
changeset 5849 b84b41aba275
parent 5756 b451fd21ff4c
child 5925 2a9353b800cd
--- a/QTfrontend/main.cpp	Sun Sep 11 08:54:21 2011 -0400
+++ b/QTfrontend/main.cpp	Sun Sep 11 15:18:46 2011 +0200
@@ -96,8 +96,8 @@
 
     Q_INIT_RESOURCE(hedgewars);
 
-    qApp->setStyleSheet
-        (QString(
+    QString styleSheetFromHell =
+        QString(
             "HWForm,QDialog{"
                 "background-image: url(\":/res/Background.png\");"
                 "background-position: bottom center;"
@@ -315,8 +315,7 @@
                 "background-color: #ffcc00;"
                 "width: 8px;"
             "}"
-            )
-        );
+            );
 
     bindir->cd("bin"); // workaround over NSIS installer
 
@@ -484,7 +483,7 @@
     CocoaInitializer initializer;
 #endif
 
-    app.form = new HWForm();
+    app.form = new HWForm(NULL,styleSheetFromHell);
 
     app.form->show();
     return app.exec();