Title: [98576] trunk/Tools
Revision
98576
Author
[email protected]
Date
2011-10-27 08:09:10 -0700 (Thu, 27 Oct 2011)

Log Message

MiniBrowser crashes when started with 0 arguments

Rubber-stamped by Simon Hausmann.

* MiniBrowser/qt/MiniBrowserApplication.cpp:
(MiniBrowserApplication::handleUserOptions):
Fix typo error.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (98575 => 98576)


--- trunk/Tools/ChangeLog	2011-10-27 15:06:18 UTC (rev 98575)
+++ trunk/Tools/ChangeLog	2011-10-27 15:09:10 UTC (rev 98576)
@@ -1,3 +1,13 @@
+2011-10-27  Balazs Kelemen  <[email protected]>
+
+        [Qt][WK2] MiniBrowser crashes when started with 0 arguments
+
+        Rubber-stamped by Simon Hausmann.
+
+        * MiniBrowser/qt/MiniBrowserApplication.cpp:
+        (MiniBrowserApplication::handleUserOptions):
+        Fix typo error.
+
 2011-10-27  Takashi Toyoshima  <[email protected]>
 
         [WebSocket] update pywebsocket to 0.7.

Modified: trunk/Tools/MiniBrowser/qt/MiniBrowserApplication.cpp (98575 => 98576)


--- trunk/Tools/MiniBrowser/qt/MiniBrowserApplication.cpp	2011-10-27 15:06:18 UTC (rev 98575)
+++ trunk/Tools/MiniBrowser/qt/MiniBrowserApplication.cpp	2011-10-27 15:09:10 UTC (rev 98576)
@@ -212,7 +212,8 @@
         m_urls = QStringList(listFile);
     } else {
         int urlArg = args.indexOf(QRegExp("^[^-].*"));
-        m_urls += args.takeAt(urlArg);
+        if (urlArg != -1)
+            m_urls += args.takeAt(urlArg);
     }
 
     if (!args.isEmpty()) {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to