Comment 3 for bug 836967

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

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

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/b93f4d9ef60573d51bc8fccb909dba46cb477052

diff --git a/libmuon/PackageModel/PackageWidget.cpp b/libmuon/PackageModel/PackageWidget.cpp
index 5ee6e9b..054f168 100644
--- a/libmuon/PackageModel/PackageWidget.cpp
+++ b/libmuon/PackageModel/PackageWidget.cpp
@@ -317,6 +317,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);