summaryrefslogtreecommitdiff
authortille <tille>2002-05-02 19:53:56 (UTC)
committer tille <tille>2002-05-02 19:53:56 (UTC)
commit7833ad013239d04669edd54041287563a47728ec (patch) (unidiff)
tree9b733caf7880a052580ecbb496cb2914e17a2a69
parentce6758eccada41f5c3fef13e6b4808c525213bee (diff)
downloadopie-7833ad013239d04669edd54041287563a47728ec.zip
opie-7833ad013239d04669edd54041287563a47728ec.tar.gz
opie-7833ad013239d04669edd54041287563a47728ec.tar.bz2
fixed
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistdoclnk.cpp9
-rw-r--r--noncore/unsupported/oipkg/packagelistdoclnk.h1
-rw-r--r--noncore/unsupported/oipkg/packagelistview.cpp13
3 files changed, 21 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/packagelistdoclnk.cpp b/noncore/unsupported/oipkg/packagelistdoclnk.cpp
index 575ac62..5787fdf 100644
--- a/noncore/unsupported/oipkg/packagelistdoclnk.cpp
+++ b/noncore/unsupported/oipkg/packagelistdoclnk.cpp
@@ -2,6 +2,7 @@
2#include "packagelistdoclnk.h" 2#include "packagelistdoclnk.h"
3 3
4#include <qpe/applnk.h> 4#include <qpe/applnk.h>
5#include <qpe/config.h>
5#include <qlist.h> 6#include <qlist.h>
6 7
7#include "package.h" 8#include "package.h"
@@ -16,11 +17,17 @@ PackageListDocLnk::PackageListDocLnk(PackageManagerSettings* s)
16PackageListDocLnk::PackageListDocLnk() 17PackageListDocLnk::PackageListDocLnk()
17 : PackageList() 18 : PackageList()
18{ 19{
19 doclnkset = new DocLnkSet("/mnt/nfs/ipk","application/ipkg"); 20 Config cfg( "oipkg", Config::User );
21 cfg.setGroup( "Common" );
22 docLnkDir = cfg.readEntry( "docLnkDir", "/root/" );
23 doclnkset = new DocLnkSet(docLnkDir,"application/ipkg");
20} 24}
21 25
22PackageListDocLnk::~PackageListDocLnk() 26PackageListDocLnk::~PackageListDocLnk()
23{ 27{
28 Config cfg( "oipkg", Config::User );
29 cfg.setGroup( "Common" );
30 cfg.writeEntry( "docLnkDir", docLnkDir );
24} 31}
25 32
26 33
diff --git a/noncore/unsupported/oipkg/packagelistdoclnk.h b/noncore/unsupported/oipkg/packagelistdoclnk.h
index 3864ace..fe73658 100644
--- a/noncore/unsupported/oipkg/packagelistdoclnk.h
+++ b/noncore/unsupported/oipkg/packagelistdoclnk.h
@@ -16,6 +16,7 @@ public slots:
16 void update(); 16 void update();
17private: 17private:
18 DocLnkSet *doclnkset; 18 DocLnkSet *doclnkset;
19 QString docLnkDir;
19}; 20};
20 21
21 22
diff --git a/noncore/unsupported/oipkg/packagelistview.cpp b/noncore/unsupported/oipkg/packagelistview.cpp
index b6b520b..70aa48a 100644
--- a/noncore/unsupported/oipkg/packagelistview.cpp
+++ b/noncore/unsupported/oipkg/packagelistview.cpp
@@ -35,7 +35,18 @@ void PackageListView::setCurrent( QListViewItem* p )
35 if ( !p ) return; 35 if ( !p ) return;
36 activePackageListItem = (PackageListItem*)p; 36 activePackageListItem = (PackageListItem*)p;
37 activePackage = activePackageListItem->getPackage(); 37 activePackage = activePackageListItem->getPackage();
38 if (!activePackage) return; 38 if (!activePackage)
39 {
40 // QDictIterator<QCheckListItem> it( rootItems );
41 // while ( it.current() )
42// {
43 // if ( it.current()==p )
44 // pvDebug(2,"current item");
45 // ++it;
46 // }
47
48 return;
49 }
39 popupTimer->start( 750, true ); 50 popupTimer->start( 750, true );
40} 51}
41 52