-rw-r--r-- | noncore/settings/aqpkg/datamgr.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/datamgr.cpp b/noncore/settings/aqpkg/datamgr.cpp index d929c39..089c3e3 100644 --- a/noncore/settings/aqpkg/datamgr.cpp +++ b/noncore/settings/aqpkg/datamgr.cpp | |||
@@ -20,2 +20,6 @@ using namespace std; | |||
20 | 20 | ||
21 | #ifdef QWS | ||
22 | #include <qpe/config.h> | ||
23 | #endif | ||
24 | |||
21 | #include <stdio.h> | 25 | #include <stdio.h> |
@@ -72,2 +76,7 @@ void DataManager :: loadServers() | |||
72 | 76 | ||
77 | #ifdef QWS | ||
78 | Config cfg( "aqpkg" ); | ||
79 | cfg.setGroup( "destinations" ); | ||
80 | #endif | ||
81 | |||
73 | // Read file from /etc/ipkg.conf | 82 | // Read file from /etc/ipkg.conf |
@@ -114,2 +123,10 @@ void DataManager :: loadServers() | |||
114 | Destination d( alias, path ); | 123 | Destination d( alias, path ); |
124 | bool linkToRoot = true; | ||
125 | #ifdef QWS | ||
126 | QString key = alias; | ||
127 | key += "_linkToRoot"; | ||
128 | linkToRoot = cfg.readBoolEntry( key, true ); | ||
129 | #endif | ||
130 | d.linkToRoot( linkToRoot ); | ||
131 | |||
115 | destList.push_back( d ); | 132 | destList.push_back( d ); |