diff options
author | Alexandru Croitor <alexandru.croitor@theqtcompany.com> | 2016-04-28 13:52:23 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@theqtcompany.com> | 2016-05-04 06:47:08 +0000 |
commit | 4c2a17d80b9f980bf984b03a6a20aabd88a964b2 (patch) | |
tree | f3f836bbb265384bc68b9aa22339bfb7fd00b435 /src/webenginewidgets | |
parent | d107266cd403416d622948186968106a9cf78590 (diff) |
[Demobrowser] Fix command line option parsing.
Passing just command line options to Chromium prevents loading of the
initial startup url. This happens because the startup url is
overridden by the last command line argument, which happens to be a
Chromium option, thus an invalid URL.
Fix consists in iterating through the command line arguments, until
a non-option argument is found (doesn't start with a dash), and use
that as the startup URL.
Change-Id: Ibe2946b25b2e023c094a85e50d2ccbd5bfce2977
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets')
0 files changed, 0 insertions, 0 deletions