Commit 4c2a17d8 authored by Alexandru Croitor's avatar Alexandru Croitor
Browse files

[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: default avatarKai Koehne <kai.koehne@qt.io>
Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>
parent d107266c
Showing with 21 additions and 9 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment