Comment 2 for bug 836967

Revision history for this message
Jonathan Thomas (echidnaman) wrote : [muon] libmuon/PackageModel: If a package is not installed, only enable the purge action when the uninstalled packages

Git commit a121214555ae5340282ea8a31683ee31bb2774da by Jonathan Thomas.
Committed on 30/08/2011 at 02:02.
Pushed by jmthomas into branch 'master'.

If a package is not installed, only enable the purge action when the uninstalled packages
also has residual configuration files.

CCMAIL:<email address hidden>

M +1 -0 libmuon/PackageModel/PackageWidget.cpp

http://commits.kde.org/muon/a121214555ae5340282ea8a31683ee31bb2774da

diff --git a/libmuon/PackageModel/PackageWidget.cpp b/libmuon/PackageModel/PackageWidget.cpp
index c49783a..b97859f 100644
--- a/libmuon/PackageModel/PackageWidget.cpp
+++ b/libmuon/PackageModel/PackageWidget.cpp
@@ -316,6 +316,7 @@ void PackageWidget::contextMenuRequested(const QPoint &pos)
             m_reinstallAction->setEnabled(false);
             m_keepAction->setEnabled(false);
         } else {
+ m_purgeAction->setEnabled(false);
             m_installAction->setEnabled(true);
             m_removeAction->setEnabled(false);
             m_upgradeAction->setEnabled(false);