diff options
author | Tim Jenssen <tim.jenssen@nokia.com> | 2011-08-18 16:15:11 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2011-08-19 10:31:00 +0200 |
commit | 8827876dc3bb8b732b9d268363c1ddc457921ded (patch) | |
tree | bfdc8c7fd6fa3a6579d3e1ef9e4e1e8c601562ba /installerbuilder | |
parent | 2dd6ec8e42ff3c8ae056418aa7ba7f938b5e3635 (diff) |
run stopProcessesForUpdates to show warning message before uninstallation
Change-Id: I3058be1ee80f90c08d6524e2dd2bfb9fd819bfa8
Reviewed-on: http://codereview.qt.nokia.com/3220
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
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/libinstaller/packagemanagercore_p.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/installerbuilder/libinstaller/packagemanagercore_p.cpp b/installerbuilder/libinstaller/packagemanagercore_p.cpp index 27a59a77e..51ef9f5be 100644 --- a/installerbuilder/libinstaller/packagemanagercore_p.cpp +++ b/installerbuilder/libinstaller/packagemanagercore_p.cpp @@ -1387,6 +1387,9 @@ void PackageManagerCorePrivate::runUninstaller() const int uninstallOperationCount = countProgressOperations(undoOperations); const double undoOperationProgressSize = double(1) / double(uninstallOperationCount); + //yes uninstallation is like an update on the component so please inform the user to stop processes + stopProcessesForUpdates(m_core->availableComponents()); + runUndoOperations(undoOperations, undoOperationProgressSize, adminRightsGained, false); // No operation delete here, as all old undo operations are deleted in the destructor. |