summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/remoteclient_p.h
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2020-04-09 09:54:10 +0300
committerKatja Marttila <katja.marttila@qt.io>2020-04-16 09:58:25 +0300
commite2d03134f81cb88d301954e7a63620edf182ddd8 (patch)
tree6ade4f87781d4f1ca23a25f5092b0d18c07fc1b5 /src/libs/installer/remoteclient_p.h
parent6a93f37440a3dcc72bb5e496dac90a8f95d63eab (diff)
Give meaningful default value to messagebox queries
If error occurs in install phase, change the default button to be cancel/ignore etc. to avoid inifinite loop when installing with CLI. When using GUI, default button is highlighted but user can choose otherwise. When using CLI the default button is always chosen if user don't give option to overwrite the default button values from command line. Task-number: QTIFW-1737 Change-Id: I721636d5a23e22ad5eee73b84e250e90eb1a6004 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io> Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/installer/remoteclient_p.h')
-rw-r--r--src/libs/installer/remoteclient_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/remoteclient_p.h b/src/libs/installer/remoteclient_p.h
index 9b5bfd844..ba60bc7ac 100644
--- a/src/libs/installer/remoteclient_p.h
+++ b/src/libs/installer/remoteclient_p.h
@@ -135,7 +135,7 @@ public:
"Cannot get authorization that is needed for continuing the installation.\n\n"
"Please start the setup program as a user with the appropriate rights.\n"
"Or accept the elevation of access rights if being asked."),
- QMessageBox::Abort | QMessageBox::Retry, QMessageBox::Retry);
+ QMessageBox::Abort | QMessageBox::Retry, QMessageBox::Abort);
if (res == QMessageBox::Retry)
started = AdminAuthorization::execute(0, m_serverCommand, m_serverArguments);
}