summaryrefslogtreecommitdiff
authorandyq <andyq>2002-10-25 15:11:48 (UTC)
committer andyq <andyq>2002-10-25 15:11:48 (UTC)
commit9086a63d5c27531c2014bade180b1cfd01663e2b (patch) (unidiff)
treee1451a11a7d9a9d4aeb9ea8336951f4b7ff74d2d
parentf4007b261a7a4dc9672a1806be50ea16ccfc84f1 (diff)
downloadopie-9086a63d5c27531c2014bade180b1cfd01663e2b.zip
opie-9086a63d5c27531c2014bade180b1cfd01663e2b.tar.gz
opie-9086a63d5c27531c2014bade180b1cfd01663e2b.tar.bz2
Fixed bug with flags not being stored
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/installdlgimpl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/settings/aqpkg/installdlgimpl.cpp b/noncore/settings/aqpkg/installdlgimpl.cpp
index 83f983a..2ea70e0 100644
--- a/noncore/settings/aqpkg/installdlgimpl.cpp
+++ b/noncore/settings/aqpkg/installdlgimpl.cpp
@@ -26,50 +26,49 @@
26#include <qpushbutton.h> 26#include <qpushbutton.h>
27 27
28 28
29#include "datamgr.h" 29#include "datamgr.h"
30#include "instoptionsimpl.h" 30#include "instoptionsimpl.h"
31#include "destination.h" 31#include "destination.h"
32#include "installdlgimpl.h" 32#include "installdlgimpl.h"
33#include "global.h" 33#include "global.h"
34 34
35InstallDlgImpl::InstallDlgImpl( vector<InstallData> &packageList, DataManager *dataManager, QWidget * parent, const char* name, bool modal, WFlags fl ) 35InstallDlgImpl::InstallDlgImpl( vector<InstallData> &packageList, DataManager *dataManager, QWidget * parent, const char* name, bool modal, WFlags fl )
36 : InstallDlg( parent, name, modal, fl ) 36 : InstallDlg( parent, name, modal, fl )
37{ 37{
38 pIpkg = 0; 38 pIpkg = 0;
39 upgradePackages = false; 39 upgradePackages = false;
40 dataMgr = dataManager; 40 dataMgr = dataManager;
41 vector<Destination>::iterator dit; 41 vector<Destination>::iterator dit;
42 42
43 QString defaultDest = "root"; 43 QString defaultDest = "root";
44#ifdef QWS 44#ifdef QWS
45 Config cfg( "aqpkg" ); 45 Config cfg( "aqpkg" );
46 cfg.setGroup( "settings" ); 46 cfg.setGroup( "settings" );
47 defaultDest = cfg.readEntry( "dest", "root" ); 47 defaultDest = cfg.readEntry( "dest", "root" );
48 48
49 // Grab flags - Turn MAKE_LINKS on by default (if no flags found) 49 // Grab flags - Turn MAKE_LINKS on by default (if no flags found)
50// flags = cfg.readNumEntry( "installFlags", MAKE_LINKS ); 50 flags = cfg.readNumEntry( "installFlags", 0 );
51 flags = 0;
52#else 51#else
53 flags = 0; 52 flags = 0;
54#endif 53#endif
55 54
56 // Output text is read only 55 // Output text is read only
57 output->setReadOnly( true ); 56 output->setReadOnly( true );
58 QFont f( "helvetica" ); 57 QFont f( "helvetica" );
59 f.setPointSize( 10 ); 58 f.setPointSize( 10 );
60 output->setFont( f ); 59 output->setFont( f );
61 60
62 61
63 // setup destination data 62 // setup destination data
64 int defIndex = 0; 63 int defIndex = 0;
65 int i; 64 int i;
66 for ( i = 0 , dit = dataMgr->getDestinationList().begin() ; dit != dataMgr->getDestinationList().end() ; ++dit, ++i ) 65 for ( i = 0 , dit = dataMgr->getDestinationList().begin() ; dit != dataMgr->getDestinationList().end() ; ++dit, ++i )
67 { 66 {
68 destination->insertItem( dit->getDestinationName() ); 67 destination->insertItem( dit->getDestinationName() );
69 if ( dit->getDestinationName() == defaultDest ) 68 if ( dit->getDestinationName() == defaultDest )
70 defIndex = i; 69 defIndex = i;
71 } 70 }
72 71
73 destination->setCurrentItem( defIndex ); 72 destination->setCurrentItem( defIndex );
74 73
75 vector<InstallData>::iterator it; 74 vector<InstallData>::iterator it;