Diffstat (limited to 'noncore/settings/aqpkg/networkpkgmgr.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/networkpkgmgr.cpp | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.cpp b/noncore/settings/aqpkg/networkpkgmgr.cpp index 6874ded..a374266 100644 --- a/noncore/settings/aqpkg/networkpkgmgr.cpp +++ b/noncore/settings/aqpkg/networkpkgmgr.cpp | |||
@@ -61,6 +61,7 @@ NetworkPackageManager::NetworkPackageManager( DataManager *dataManager, QWidget | |||
61 | setupConnections(); | 61 | setupConnections(); |
62 | 62 | ||
63 | progressDlg = 0; | 63 | updateData(); |
64 | timerId = startTimer( 100 ); | 64 | // progressDlg = 0; |
65 | // timerId = startTimer( 100 ); | ||
65 | } | 66 | } |
66 | 67 | ||
@@ -107,4 +108,30 @@ void NetworkPackageManager :: updateData() | |||
107 | } | 108 | } |
108 | 109 | ||
110 | void NetworkPackageManager :: selectLocalPackage( const QString &pkg ) | ||
111 | { | ||
112 | // First select local server | ||
113 | for ( int i = 0 ; i < serversList->count() ; ++i ) | ||
114 | { | ||
115 | if ( serversList->text( i ) == LOCAL_IPKGS ) | ||
116 | { | ||
117 | serversList->setCurrentItem( i ); | ||
118 | break; | ||
119 | } | ||
120 | } | ||
121 | serverSelected( 0 ); | ||
122 | |||
123 | // Now set the check box of the selected package | ||
124 | for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild(); | ||
125 | item != 0 ; | ||
126 | item = (QCheckListItem *)item->nextSibling() ) | ||
127 | { | ||
128 | if ( item->text().startsWith( pkg ) ) | ||
129 | { | ||
130 | item->setOn( true ); | ||
131 | break; | ||
132 | } | ||
133 | } | ||
134 | } | ||
135 | |||
109 | 136 | ||
110 | void NetworkPackageManager :: initGui() | 137 | void NetworkPackageManager :: initGui() |