summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/packagemanagergui.cpp
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-02-24 11:49:17 +0200
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-03-02 08:11:55 +0000
commit76e113b90afe5555f39b2aa37edc8137d661a1ac (patch)
treee7f4cd4ecd684b0992d9f29fe160258e156bf9e3 /src/libs/installer/packagemanagergui.cpp
parent187239ddbc37b7d98a825c5fff44e29c8561270d (diff)
Add command line option to start the installer binary as uninstaller
Add option "--uninstaller" to start the installer binary explicitly as uninstaller. This complements options "--updater" and "--manage-packages". Add convenience functions for setting and checking if the magic binary marker has been set by the user. Task-number: QTIFW-1639 Change-Id: Ie40ba9c56e09be079e309bca985b19a8a7bef7ef Reviewed-by: Iikka Eklund <iikka.eklund@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer/packagemanagergui.cpp')
-rw-r--r--src/libs/installer/packagemanagergui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/packagemanagergui.cpp b/src/libs/installer/packagemanagergui.cpp
index 797b5bc7d..05f61ae18 100644
--- a/src/libs/installer/packagemanagergui.cpp
+++ b/src/libs/installer/packagemanagergui.cpp
@@ -1626,7 +1626,7 @@ void IntroductionPage::initializePage()
// If we are running maintenance tool and the default uninstaller
// marker is not overridden, set the default checked radio button
// based on if we have valid repositories available.
- if (validRepositoriesAvailable()) {
+ if (!core->isUserSetBinaryMarker() && validRepositoriesAvailable()) {
m_packageManager->setChecked(true);
} else {
// No repositories available, default to complete uninstallation.