summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/installdlgimpl.cpp
authorandyq <andyq>2002-11-22 16:11:49 (UTC)
committer andyq <andyq>2002-11-22 16:11:49 (UTC)
commit34ca473739286557b3d0c73525740f0b8b01fd4b (patch) (unidiff)
tree727fa7f17d0bafa7b2e4ae30eed2c80f80b770d9 /noncore/settings/aqpkg/installdlgimpl.cpp
parent8366956992e07a9fc77b9e126bb429b32fd4ad9a (diff)
downloadopie-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.cpp15
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 @@
17 17
18#ifdef QWS 18#ifdef QWS
19#include <qpe/config.h> 19#include <qpe/config.h>
20#include <qpe/qpeapplication.h>
20#endif 21#endif
21 22
22#include <qmultilineedit.h> 23#include <qmultilineedit.h>
@@ -128,15 +129,7 @@ void InstallDlgImpl :: optionsSelected()
128 opt.exec(); 129 opt.exec();
129 130
130 // set options selected from dialog 131 // set options selected from dialog
131 flags = 0; 132 flags = opt.getFlags();
132 if ( opt.forceDepends->isChecked() )
133 flags |= FORCE_DEPENDS;
134 if ( opt.forceReinstall->isChecked() )
135 flags |= FORCE_REINSTALL;
136 if ( opt.forceRemove->isChecked() )
137 flags |= FORCE_REMOVE;
138 if ( opt.forceOverwrite->isChecked() )
139 flags |= FORCE_OVERWRITE;
140 133
141#ifdef QWS 134#ifdef QWS
142 Config cfg( "aqpkg" ); 135 Config cfg( "aqpkg" );
@@ -147,12 +140,15 @@ void InstallDlgImpl :: optionsSelected()
147 140
148void InstallDlgImpl :: installSelected() 141void InstallDlgImpl :: installSelected()
149{ 142{
143
150 if ( btnInstall->text() == "Close" ) 144 if ( btnInstall->text() == "Close" )
151 { 145 {
152 done( 1 ); 146 done( 1 );
153 return; 147 return;
154 } 148 }
155 149
150 // Disable buttons
151 btnOptions->setEnabled( false );
156 btnInstall->setEnabled( false ); 152 btnInstall->setEnabled( false );
157 153
158 if ( pIpkg ) 154 if ( pIpkg )
@@ -230,6 +226,7 @@ void InstallDlgImpl :: installSelected()
230 delete pIpkg; 226 delete pIpkg;
231 } 227 }
232 228
229 btnOptions->setEnabled( true );
233 btnInstall->setEnabled( true ); 230 btnInstall->setEnabled( true );
234 btnInstall->setText( tr( "Close" ) ); 231 btnInstall->setText( tr( "Close" ) );
235} 232}