summaryrefslogtreecommitdiff
path: root/src/tools/iostool
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2015-08-06 14:36:18 +0200
committerEike Ziller <eike.ziller@theqtcompany.com>2015-08-07 10:02:56 +0000
commit98b0a11dbdffb6e6ccce44a72caf04e80eff2451 (patch)
treeae2324fb7f6d85cbc451ea187708a29303c61384 /src/tools/iostool
parent1992d0f230ff64bac32e1e3a38a08d5606732bc3 (diff)
downloadqt-creator-98b0a11dbdffb6e6ccce44a72caf04e80eff2451.tar.gz
iOS: Keep iostool from stealing focus
This was triggered by fixing the iostool Info.plist in 339a8b619e2ddc06370aa9dfe5cbb985f8acebad Define QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM, similar to how it was done for qml(2)puppet in f6303e67840ce2604a5bdfdceb742e7ec7c9d95d Task-number: QTCREATORBUG-14837 Change-Id: Ia0dda338361900c519bbaaef225b6a613e928817 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'src/tools/iostool')
-rw-r--r--src/tools/iostool/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/iostool/main.cpp b/src/tools/iostool/main.cpp
index 8aad4e961a..f902f761cd 100644
--- a/src/tools/iostool/main.cpp
+++ b/src/tools/iostool/main.cpp
@@ -896,6 +896,8 @@ void IosTool::stopRelayServers(int errorCode)
int main(int argc, char *argv[])
{
+ //This keeps iostool from stealing focus
+ qputenv("QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM", "true");
// We do not pass the real arguments to QCoreApplication because this wrapper needs to be able
// to forward arguments like -qmljsdebugger=... that are filtered by QCoreApplication
QStringList args;