summaryrefslogtreecommitdiffstats
path: root/installerbuilder
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@nokia.com>2011-12-01 00:38:27 +0100
committerKarsten Heimrich <karsten.heimrich@nokia.com>2011-12-01 11:42:54 +0100
commit7cc9a31a6c719c9ab27d12a2c819e2dc98fb9b4f (patch)
treeb527cb23b850ca642691b08428b461f9b81bbbf9 /installerbuilder
parent29224714f92813c04565947c37065a8feb8778e0 (diff)
Move the restart of the wizard into installer base.
Also clear some more labels on restart or after new setings. Change-Id: I3a3727b0d4f2f43e13aafa5f6e499ac74277774c Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
Diffstat (limited to 'installerbuilder')
-rw-r--r--installerbuilder/installerbase/tabcontroller.cpp15
-rw-r--r--installerbuilder/libinstaller/packagemanagergui.cpp2
2 files changed, 12 insertions, 5 deletions
diff --git a/installerbuilder/installerbase/tabcontroller.cpp b/installerbuilder/installerbase/tabcontroller.cpp
index a2d9dcd6b..8276e37d1 100644
--- a/installerbuilder/installerbase/tabcontroller.cpp
+++ b/installerbuilder/installerbase/tabcontroller.cpp
@@ -134,9 +134,13 @@ int TabController::init()
IntroductionPageImpl *page =
qobject_cast<IntroductionPageImpl*> (d->m_gui->page(PackageManagerCore::Introduction));
- if (page)
+ if (page) {
+ page->setMessage(QString());
+ page->setErrorMessage(QString());
page->onCoreNetworkSettingsChanged();
+ }
+ d->m_gui->restart();
d->m_gui->setWindowModality(Qt::WindowModal);
d->m_gui->show();
@@ -176,8 +180,13 @@ void TabController::onSettingsButtonClicked()
if (d->m_networkSettingsChanged) {
d->m_core->setCanceled();
- QTimer::singleShot(0, d->m_gui, SLOT(restart()));
- QTimer::singleShot(100, this, SLOT(restartWizard()));
+ IntroductionPageImpl *page =
+ qobject_cast<IntroductionPageImpl*> (d->m_gui->page(PackageManagerCore::Introduction));
+ if (page) {
+ page->setMessage(QString());
+ page->setErrorMessage(QString());
+ }
+ restartWizard();
}
}
diff --git a/installerbuilder/libinstaller/packagemanagergui.cpp b/installerbuilder/libinstaller/packagemanagergui.cpp
index f6779276b..41fa7fa9b 100644
--- a/installerbuilder/libinstaller/packagemanagergui.cpp
+++ b/installerbuilder/libinstaller/packagemanagergui.cpp
@@ -1962,8 +1962,6 @@ void RestartPage::entering()
if (!packageManagerCore()->needsRestart()) {
if (QAbstractButton *finish = wizard()->button(QWizard::FinishButton))
finish->setVisible(false);
-
- wizard()->restart();
QMetaObject::invokeMethod(this, "restart", Qt::QueuedConnection);
} else {
gui()->accept();