Diffstat (limited to 'noncore/settings/packagemanager/installdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/installdlg.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/noncore/settings/packagemanager/installdlg.cpp b/noncore/settings/packagemanager/installdlg.cpp index c0c03fc..980d5eb 100644 --- a/noncore/settings/packagemanager/installdlg.cpp +++ b/noncore/settings/packagemanager/installdlg.cpp | |||
@@ -198,5 +198,5 @@ void InstallDlg::slotDisplayAvailSpace( const QString &destination ) | |||
198 | } | 198 | } |
199 | 199 | ||
200 | // Display available space (if known) | 200 | // Display available space |
201 | m_availSpace->setText( space ); | 201 | m_availSpace->setText( space ); |
202 | } | 202 | } |
@@ -228,5 +228,8 @@ void InstallDlg::slotBtnStart() | |||
228 | m_btnStart->setIconSet( Resource::loadPixmap( "close" ) ); | 228 | m_btnStart->setIconSet( Resource::loadPixmap( "close" ) ); |
229 | 229 | ||
230 | m_packman->executeCommand( m_command[ 0 ], m_packages[ 0 ], m_destination->currentText(), this, | 230 | QString dest; |
231 | if ( m_destination ) | ||
232 | dest = m_destination->currentText(); | ||
233 | m_packman->executeCommand( m_command[ 0 ], m_packages[ 0 ], dest, this, | ||
231 | SLOT(slotOutput(OProcess*,char*,int)), SLOT(slotErrors(OProcess*,char*,int)), | 234 | SLOT(slotOutput(OProcess*,char*,int)), SLOT(slotErrors(OProcess*,char*,int)), |
232 | SLOT(slotFinished(OProcess*)), true ); | 235 | SLOT(slotFinished(OProcess*)), true ); |