summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2014-12-08 14:22:03 +0100
committerKai Koehne <kai.koehne@theqtcompany.com>2014-12-08 14:44:17 +0100
commitc8e0723c9f738df9b9b800bed71573cc4448cae6 (patch)
tree373e1b6debf3ae976a2c54494f43c87089566077
parentb843bff42705044eb88bc87298873ed6f7a93c55 (diff)
parent7f2c98c8af2f6060728e8c31a85da798a72d13f1 (diff)
Merge remote-tracking branch 'origin/1.6'
-rw-r--r--src/libs/installer/packagemanagergui.cpp8
-rw-r--r--src/sdk/tabcontroller.cpp5
2 files changed, 7 insertions, 6 deletions
diff --git a/src/libs/installer/packagemanagergui.cpp b/src/libs/installer/packagemanagergui.cpp
index e3dc65d58..3b7b3b178 100644
--- a/src/libs/installer/packagemanagergui.cpp
+++ b/src/libs/installer/packagemanagergui.cpp
@@ -1970,12 +1970,8 @@ void StartMenuDirectoryPage::leaving()
void StartMenuDirectoryPage::currentItemChanged(QListWidgetItem *current)
{
- if (current) {
- QString dir = current->data(Qt::DisplayRole).toString();
- if (!dir.isEmpty())
- dir += QDir::separator();
- setStartMenuDir(dir + packageManagerCore()->value(scStartMenuDir));
- }
+ if (current)
+ setStartMenuDir(current->data(Qt::DisplayRole).toString());
}
diff --git a/src/sdk/tabcontroller.cpp b/src/sdk/tabcontroller.cpp
index 9234b5549..035622dfb 100644
--- a/src/sdk/tabcontroller.cpp
+++ b/src/sdk/tabcontroller.cpp
@@ -164,6 +164,11 @@ void TabController::restartWizard()
d->m_core->networkSettingsChanged();
}
+ // Make sure we are writing the .dat file with the list of uninstall operations already now.
+ // Otherwise we will write at the end of the next updater run, with a potentially
+ // empty component list (if no updates are found).
+ d->m_core->writeMaintenanceTool();
+
// restart and switch back to intro page
QTimer::singleShot(0, this, SLOT(init()));
}