From 7833ad013239d04669edd54041287563a47728ec Mon Sep 17 00:00:00 2001 From: tille Date: Thu, 02 May 2002 19:53:56 +0000 Subject: fixed --- (limited to 'noncore') 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 @@ #include "packagelistdoclnk.h" #include +#include #include #include "package.h" @@ -16,11 +17,17 @@ PackageListDocLnk::PackageListDocLnk(PackageManagerSettings* s) PackageListDocLnk::PackageListDocLnk() : PackageList() { - 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"); } 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 @@ -16,6 +16,7 @@ public slots: void update(); 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 @@ -35,7 +35,18 @@ void PackageListView::setCurrent( QListViewItem* p ) if ( !p ) return; activePackageListItem = (PackageListItem*)p; activePackage = activePackageListItem->getPackage(); - if (!activePackage) return; + if (!activePackage) + { +// QDictIterator it( rootItems ); +// while ( it.current() ) +// { +// if ( it.current()==p ) +// pvDebug(2,"current item"); +// ++it; +// } + + return; + } popupTimer->start( 750, true ); } -- cgit v0.9.0.2