summaryrefslogtreecommitdiff
path: root/noncore/unsupported
Side-by-side diff
Diffstat (limited to 'noncore/unsupported') (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
@@ -4,2 +4,3 @@
#include <qpe/applnk.h>
+#include <qpe/config.h>
#include <qlist.h>
@@ -18,3 +19,6 @@ PackageListDocLnk::PackageListDocLnk()
{
- doclnkset = new DocLnkSet("/mnt/nfs/ipk","application/ipkg");
+ Config cfg( "oipkg", Config::User );
+ cfg.setGroup( "Common" );
+ docLnkDir = cfg.readEntry( "docLnkDir", "/root/" );
+ doclnkset = new DocLnkSet(docLnkDir,"application/ipkg");
}
@@ -23,2 +27,5 @@ PackageListDocLnk::~PackageListDocLnk()
{
+ Config cfg( "oipkg", Config::User );
+ cfg.setGroup( "Common" );
+ cfg.writeEntry( "docLnkDir", docLnkDir );
}
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
@@ -18,2 +18,3 @@ private:
DocLnkSet *doclnkset;
+ QString docLnkDir;
};
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
@@ -37,3 +37,14 @@ void PackageListView::setCurrent( QListViewItem* p )
activePackage = activePackageListItem->getPackage();
- if (!activePackage) return;
+ if (!activePackage)
+ {
+// QDictIterator<QCheckListItem> it( rootItems );
+// while ( it.current() )
+// {
+// if ( it.current()==p )
+// pvDebug(2,"current item");
+// ++it;
+// }
+
+ return;
+ }
popupTimer->start( 750, true );