Title: [106004] trunk/Tools
- Revision
- 106004
- Author
- [email protected]
- Date
- 2012-01-26 08:07:53 -0800 (Thu, 26 Jan 2012)
Log Message
[Qt] Support opening multiple URL's from the command line in the Qt MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=77100
Patch by Alexander Færøy <[email protected]> on 2012-01-26
Reviewed by Simon Hausmann.
This patch makes the MiniBrowser read multiple URL's from the command
line such that there will be one browser window opened for each URL.
* MiniBrowser/qt/MiniBrowserApplication.cpp:
(MiniBrowserApplication::handleUserOptions):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (106003 => 106004)
--- trunk/Tools/ChangeLog 2012-01-26 15:28:29 UTC (rev 106003)
+++ trunk/Tools/ChangeLog 2012-01-26 16:07:53 UTC (rev 106004)
@@ -1,5 +1,18 @@
2012-01-26 Alexander Færøy <[email protected]>
+ [Qt] Support opening multiple URL's from the command line in the Qt MiniBrowser
+ https://bugs.webkit.org/show_bug.cgi?id=77100
+
+ Reviewed by Simon Hausmann.
+
+ This patch makes the MiniBrowser read multiple URL's from the command
+ line such that there will be one browser window opened for each URL.
+
+ * MiniBrowser/qt/MiniBrowserApplication.cpp:
+ (MiniBrowserApplication::handleUserOptions):
+
+2012-01-26 Alexander Færøy <[email protected]>
+
[Qt] The Qt MiniBrowser crashes when given multiple URL's
https://bugs.webkit.org/show_bug.cgi?id=77009
Modified: trunk/Tools/MiniBrowser/qt/MiniBrowserApplication.cpp (106003 => 106004)
--- trunk/Tools/MiniBrowser/qt/MiniBrowserApplication.cpp 2012-01-26 15:28:29 UTC (rev 106003)
+++ trunk/Tools/MiniBrowser/qt/MiniBrowserApplication.cpp 2012-01-26 16:07:53 UTC (rev 106004)
@@ -250,8 +250,9 @@
m_robotTimeoutSeconds = takeOptionValue(&args, "--robot-timeout").toInt();
m_robotExtraTimeSeconds = takeOptionValue(&args, "--robot-extra-time").toInt();
} else {
- int urlArg = args.indexOf(QRegExp("^[^-].*"));
- if (urlArg != -1)
+ int urlArg;
+
+ while ((urlArg = args.indexOf(QRegExp("^[^-].*"))) != -1)
m_urls += args.takeAt(urlArg);
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes