Diffstat (limited to 'noncore/settings/aqpkg/settingsimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/settingsimpl.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/noncore/settings/aqpkg/settingsimpl.cpp b/noncore/settings/aqpkg/settingsimpl.cpp index 9ee3a33..a18a178 100644 --- a/noncore/settings/aqpkg/settingsimpl.cpp +++ b/noncore/settings/aqpkg/settingsimpl.cpp | |||
@@ -66,8 +66,8 @@ void SettingsImpl :: setupData() | |||
66 | vector<Server>::iterator it; | 66 | vector<Server>::iterator it; |
67 | for ( it = dataMgr->getServerList().begin() ; it != dataMgr->getServerList().end() ; ++it ) | 67 | for ( it = dataMgr->getServerList().begin() ; it != dataMgr->getServerList().end() ; ++it ) |
68 | { | 68 | { |
69 | if ( it->getServerName() == LOCAL_SERVER || it->getServerName() == LOCAL_IPKGS ) | 69 | if ( it->getServerName() == LOCAL_SERVER || it->getServerName() == LOCAL_IPKGS ) |
70 | continue; | 70 | continue; |
71 | 71 | ||
72 | servers->insertItem( it->getServerName() ); | 72 | servers->insertItem( it->getServerName() ); |
73 | } | 73 | } |
@@ -77,6 +77,13 @@ void SettingsImpl :: setupData() | |||
77 | for ( it2 = dataMgr->getDestinationList().begin() ; it2 != dataMgr->getDestinationList().end() ; ++it2 ) | 77 | for ( it2 = dataMgr->getDestinationList().begin() ; it2 != dataMgr->getDestinationList().end() ; ++it2 ) |
78 | destinations->insertItem( it2->getDestinationName() ); | 78 | destinations->insertItem( it2->getDestinationName() ); |
79 | 79 | ||
80 | #ifdef QWS | ||
81 | Config cfg( "aqpkg" ); | ||
82 | cfg.setGroup( "settings" ); | ||
83 | jumpTo->setChecked( cfg.readBoolEntry( "showJumpTo", "true" ) ); | ||
84 | #else | ||
85 | jumpTo->setChecked( true ); | ||
86 | #endif | ||
80 | } | 87 | } |
81 | 88 | ||
82 | //------------------ Servers tab ---------------------- | 89 | //------------------ Servers tab ---------------------- |
@@ -224,3 +231,15 @@ void SettingsImpl :: changeDestinationDetails() | |||
224 | #endif | 231 | #endif |
225 | } | 232 | } |
226 | } | 233 | } |
234 | |||
235 | //------------------ General tab ---------------------- | ||
236 | |||
237 | void SettingsImpl :: toggleJumpTo( bool val ) | ||
238 | { | ||
239 | #ifdef QWS | ||
240 | Config cfg( "aqpkg" ); | ||
241 | cfg.setGroup( "settings" ); | ||
242 | cfg.writeEntry( "showJumpTo", val ); | ||
243 | #endif | ||
244 | } | ||
245 | |||