author | andyq <andyq> | 2002-11-22 16:11:49 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-11-22 16:11:49 (UTC) |
commit | 34ca473739286557b3d0c73525740f0b8b01fd4b (patch) (side-by-side diff) | |
tree | 727fa7f17d0bafa7b2e4ae30eed2c80f80b770d9 /noncore/settings/aqpkg/installdlgimpl.cpp | |
parent | 8366956992e07a9fc77b9e126bb429b32fd4ad9a (diff) | |
download | opie-34ca473739286557b3d0c73525740f0b8b01fd4b.zip opie-34ca473739286557b3d0c73525740f0b8b01fd4b.tar.gz opie-34ca473739286557b3d0c73525740f0b8b01fd4b.tar.bz2 |
Added verbose_wget flags (doesn't yet work properly though coz ipkg is sending crap)
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 @@ -17,6 +17,7 @@ #ifdef QWS #include <qpe/config.h> +#include <qpe/qpeapplication.h> #endif #include <qmultilineedit.h> @@ -128,15 +129,7 @@ void InstallDlgImpl :: optionsSelected() opt.exec(); // 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 Config cfg( "aqpkg" ); @@ -147,12 +140,15 @@ void InstallDlgImpl :: optionsSelected() void InstallDlgImpl :: installSelected() { + if ( btnInstall->text() == "Close" ) { done( 1 ); return; } + // Disable buttons + btnOptions->setEnabled( false ); btnInstall->setEnabled( false ); if ( pIpkg ) @@ -230,6 +226,7 @@ void InstallDlgImpl :: installSelected() delete pIpkg; } + btnOptions->setEnabled( true ); btnInstall->setEnabled( true ); btnInstall->setText( tr( "Close" ) ); } |