Title: [95526] trunk/Tools
Revision
95526
Author
[email protected]
Date
2011-09-20 04:36:15 -0700 (Tue, 20 Sep 2011)

Log Message

[Qt] Don't use QFont before initializing QApplication

Could potentially result in crash.

Reviewed by Simon Hausmann.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (95525 => 95526)


--- trunk/Tools/ChangeLog	2011-09-20 10:41:11 UTC (rev 95525)
+++ trunk/Tools/ChangeLog	2011-09-20 11:36:15 UTC (rev 95526)
@@ -1,3 +1,14 @@
+2011-09-20  Tor Arne Vestbø  <[email protected]>
+
+        [Qt] Don't use QFont before initializing QApplication
+
+        Could potentially result in crash.
+
+        Reviewed by Simon Hausmann.
+
+        * DumpRenderTree/qt/main.cpp:
+        (main):
+
 2011-09-19  Adam Barth  <[email protected]>
 
         Always enable ENABLE(EVENTSOURCE)

Modified: trunk/Tools/DumpRenderTree/qt/main.cpp (95525 => 95526)


--- trunk/Tools/DumpRenderTree/qt/main.cpp	2011-09-20 10:41:11 UTC (rev 95525)
+++ trunk/Tools/DumpRenderTree/qt/main.cpp	2011-09-20 11:36:15 UTC (rev 95526)
@@ -144,13 +144,14 @@
     QApplication::setGraphicsSystem("raster");
     QApplication::setStyle(new QWindowsStyle);
 
+    QApplication app(argc, argv);
+
     QFont f("Sans Serif");
     f.setPointSize(9);
     f.setWeight(QFont::Normal);
     f.setStyle(QFont::StyleNormal);
     QApplication::setFont(f);
 
-    QApplication app(argc, argv);
 #ifdef Q_WS_X11
     QX11Info::setAppDpiY(0, 96);
     QX11Info::setAppDpiX(0, 96);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to