-rw-r--r-- | noncore/settings/aqpkg/installdlgimpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/installdlgimpl.cpp b/noncore/settings/aqpkg/installdlgimpl.cpp index bd07828..bf2c482 100644 --- a/noncore/settings/aqpkg/installdlgimpl.cpp +++ b/noncore/settings/aqpkg/installdlgimpl.cpp | |||
@@ -239,25 +239,26 @@ void InstallDlgImpl :: installSelected() | |||
239 | tmpFlags |= MAKE_LINKS; | 239 | tmpFlags |= MAKE_LINKS; |
240 | pIpkg->setFlags( tmpFlags ); | 240 | pIpkg->setFlags( tmpFlags ); |
241 | pIpkg->runIpkg(); | 241 | pIpkg->runIpkg(); |
242 | } | 242 | } |
243 | 243 | ||
244 | delete pIpkg; | 244 | delete pIpkg; |
245 | } | 245 | } |
246 | 246 | ||
247 | btnOptions->setEnabled( true ); | 247 | btnOptions->setEnabled( true ); |
248 | // btnInstall->setEnabled( true ); | 248 | // btnInstall->setEnabled( true ); |
249 | btnInstall->setText( tr( "Close" ) ); | 249 | btnInstall->setText( tr( "Close" ) ); |
250 | 250 | ||
251 | displayAvailableSpace( destination->currentText() ); | 251 | if ( destination->currentText() != 0 && destination->currentText() != "" ) |
252 | displayAvailableSpace( destination->currentText() ); | ||
252 | } | 253 | } |
253 | 254 | ||
254 | 255 | ||
255 | void InstallDlgImpl :: displayText(const QString &text ) | 256 | void InstallDlgImpl :: displayText(const QString &text ) |
256 | { | 257 | { |
257 | QString t = output->text() + "\n" + text; | 258 | QString t = output->text() + "\n" + text; |
258 | output->setText( t ); | 259 | output->setText( t ); |
259 | output->setCursorPosition( output->numLines(), 0 ); | 260 | output->setCursorPosition( output->numLines(), 0 ); |
260 | } | 261 | } |
261 | 262 | ||
262 | 263 | ||
263 | void InstallDlgImpl :: displayAvailableSpace( const QString &text ) | 264 | void InstallDlgImpl :: displayAvailableSpace( const QString &text ) |