Comment 3 for bug 841323

Revision history for this message
Jonathan Thomas (echidnaman) wrote : [muon] installer/ApplicationModel: Fix a bug where installing a package from within the "More Details" view would not do

Git commit cfb17955e44352b79be36294065a46d8ffeed227 by Jonathan Thomas.
Committed on 04/09/2011 at 22:38.
Pushed by jmthomas into branch 'master'.

Fix a bug where installing a package from within the "More Details" view would not do
anything. When I added the addons installation capabilities, I must have accidentally
replaced the connection for the install-application-only signal when I added the
install-application-and-addons signal.

CCMAIL:<email address hidden>

M +2 -0 installer/ApplicationModel/ApplicationViewWidget.cpp

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

diff --git a/installer/ApplicationModel/ApplicationViewWidget.cpp b/installer/ApplicationModel/ApplicationViewWidget.cpp
index 1986bb2..533f62e 100644
--- a/installer/ApplicationModel/ApplicationViewWidget.cpp
+++ b/installer/ApplicationModel/ApplicationViewWidget.cpp
@@ -153,6 +153,8 @@ void ApplicationViewWidget::infoButtonClicked(Application *app)
     m_detailsView->setApplication(app);
     m_currentPair.first = m_detailsView;

+ connect(m_detailsView, SIGNAL(installButtonClicked(Application*)),
+ this, SLOT(installButtonClicked(Application*)));
     connect(m_detailsView, SIGNAL(installButtonClicked(Application *, const QHash<QApt::Package *, QApt::Package::State> &)),
             this, SLOT(installButtonClicked(Application *, const QHash<QApt::Package *, QApt::Package::State> &)));
     connect(m_detailsView, SIGNAL(removeButtonClicked(Application *)),