summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-09-21 17:43:48 +0300
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-09-25 10:32:06 +0300
commit557feae54796a861f6076d30df17958e14debb4c (patch)
tree7f4f8202e949e5dff86a571f015a876e741a4388 /src
parent26297c5a623849c8f3d68dac0ef6570779f60f62 (diff)
Fix updating of restart page visibility
Package manager core type can change from other causes than the user altering the radio button selection in introduction page. Replace associated connection to use a signal that is emitted in all cases the binary type is updated. Task-number: QTIFW-1841 Change-Id: I5c647267775a767ca01e4d0a6822fda373c56a6b Reviewed-by: Iikka Eklund <iikka.eklund@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/sdk/installerbasecommons.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sdk/installerbasecommons.cpp b/src/sdk/installerbasecommons.cpp
index bd1c4cdf5..5f2075694 100644
--- a/src/sdk/installerbasecommons.cpp
+++ b/src/sdk/installerbasecommons.cpp
@@ -81,12 +81,11 @@ MaintenanceGui::MaintenanceGui(PackageManagerCore *core)
setPage(id, page);
}
- IntroductionPage *intro = new IntroductionPage(core);
- connect(intro, &IntroductionPage::packageManagerCoreTypeChanged,
+ connect(core, &PackageManagerCore::installerBinaryMarkerChanged,
this, &MaintenanceGui::updateRestartPage);
if (!core->isOfflineOnly() || validRepositoriesAvailable()) {
- setPage(PackageManagerCore::Introduction, intro);
+ setPage(PackageManagerCore::Introduction, new IntroductionPage(core));
setPage(PackageManagerCore::ComponentSelection, new ComponentSelectionPage(core));
setPage(PackageManagerCore::LicenseCheck, new LicenseAgreementPage(core));
} else {