diff options
author | Maurice Kalinowski <maurice.kalinowski@theqtcompany.com> | 2015-12-11 14:45:53 +0100 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@theqtcompany.com> | 2015-12-14 08:43:25 +0000 |
commit | 127b9fa5b0d6dfdf666b1e6593b848ae33556020 (patch) | |
tree | af831505b7b1868b415854eb50100fc2894acb4d /src/winmain/qtmain_winrt.cpp | |
parent | acdd57cb4329724004a0beee8cdfca99d26d9f6c (diff) | |
download | qtbase-127b9fa5b0d6dfdf666b1e6593b848ae33556020.tar.gz |
remove visual studio specific argument
"-ServerName:" is only used for Visual Studio and causes bad side-
effects when using QCommandLineParser.
Change-Id: Ifef652bbb65df9279a39ae3c74ddbb563c87bd90
Reviewed-by: David Faure <david.faure@kdab.com>
Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
Diffstat (limited to 'src/winmain/qtmain_winrt.cpp')
-rw-r--r-- | src/winmain/qtmain_winrt.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/winmain/qtmain_winrt.cpp b/src/winmain/qtmain_winrt.cpp index 080f1637f1..098ae45dc8 100644 --- a/src/winmain/qtmain_winrt.cpp +++ b/src/winmain/qtmain_winrt.cpp @@ -243,6 +243,9 @@ private: } } + if (args.count() >= 2 && strncmp(args.at(1), "-ServerName:", 12) == 0) + args.remove(1); + bool develMode = false; bool debugWait = false; foreach (const char *arg, args) { |