Diffstat (limited to 'noncore/settings/aqpkg/installdlgimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/installdlgimpl.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/noncore/settings/aqpkg/installdlgimpl.cpp b/noncore/settings/aqpkg/installdlgimpl.cpp index db9a259..485fe3d 100644 --- a/noncore/settings/aqpkg/installdlgimpl.cpp +++ b/noncore/settings/aqpkg/installdlgimpl.cpp @@ -18,4 +18,5 @@ #ifdef QWS #include <qpe/config.h> +#include <qpe/qpeapplication.h> #endif @@ -129,13 +130,5 @@ void InstallDlgImpl :: optionsSelected() // set options selected from dialog - flags = 0; - if ( opt.forceDepends->isChecked() ) - flags |= FORCE_DEPENDS; - if ( opt.forceReinstall->isChecked() ) - flags |= FORCE_REINSTALL; - if ( opt.forceRemove->isChecked() ) - flags |= FORCE_REMOVE; - if ( opt.forceOverwrite->isChecked() ) - flags |= FORCE_OVERWRITE; + flags = opt.getFlags(); #ifdef QWS @@ -148,4 +141,5 @@ void InstallDlgImpl :: optionsSelected() void InstallDlgImpl :: installSelected() { + if ( btnInstall->text() == "Close" ) { @@ -154,4 +148,6 @@ void InstallDlgImpl :: installSelected() } + // Disable buttons + btnOptions->setEnabled( false ); btnInstall->setEnabled( false ); @@ -231,4 +227,5 @@ void InstallDlgImpl :: installSelected() } + btnOptions->setEnabled( true ); btnInstall->setEnabled( true ); btnInstall->setText( tr( "Close" ) ); |