summaryrefslogtreecommitdiffstats
path: root/src/winmain
diff options
context:
space:
mode:
Diffstat (limited to 'src/winmain')
-rw-r--r--src/winmain/qtmain_winrt.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/winmain/qtmain_winrt.cpp b/src/winmain/qtmain_winrt.cpp
index 1f5b98794d..79ecf30b70 100644
--- a/src/winmain/qtmain_winrt.cpp
+++ b/src/winmain/qtmain_winrt.cpp
@@ -295,11 +295,15 @@ private:
bool develMode = false;
bool debugWait = false;
- for (const char *arg : args) {
- if (strcmp(arg, "-qdevel") == 0)
+ for (int i = args.count() - 1; i >= 0; --i) {
+ const char *arg = args.at(i);
+ if (strcmp(arg, "-qdevel") == 0) {
develMode = true;
- if (strcmp(arg, "-qdebug") == 0)
+ args.remove(i);
+ } else if (strcmp(arg, "-qdebug") == 0) {
debugWait = true;
+ args.remove(i);
+ }
}
if (develMode) {
// Write a PID file to help runner