Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/mainwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp index b668660..259a789 100644 --- a/noncore/unsupported/oipkg/mainwindow.cpp +++ b/noncore/unsupported/oipkg/mainwindow.cpp | |||
@@ -227,39 +227,42 @@ void MainWindow::makeMenu() | |||
227 | // configure the menus | 227 | // configure the menus |
228 | Config cfg( "oipkg", Config::User ); | 228 | Config cfg( "oipkg", Config::User ); |
229 | cfg.setGroup( "gui" ); | 229 | cfg.setGroup( "gui" ); |
230 | 230 | ||
231 | findShow( cfg.readBoolEntry( "findBar", true ) ); | 231 | findShow( cfg.readBoolEntry( "findBar", true ) ); |
232 | searchShow( cfg.readBoolEntry( "searchBar", true ) ); | 232 | searchShow( cfg.readBoolEntry( "searchBar", true ) ); |
233 | sectionShow( cfg.readBoolEntry( "sectionBar", true ) ); | 233 | sectionShow( cfg.readBoolEntry( "sectionBar", true ) ); |
234 | destShow( cfg.readBoolEntry( "destBar", false ) ); | 234 | destShow( cfg.readBoolEntry( "destBar", false ) ); |
235 | } | 235 | } |
236 | 236 | ||
237 | MainWindow::~MainWindow() | 237 | MainWindow::~MainWindow() |
238 | { | 238 | { |
239 | pvDebug(7,"MainWindow::~MainWindow "); | ||
239 | Config cfg( "oipkg", Config::User ); | 240 | Config cfg( "oipkg", Config::User ); |
240 | cfg.setGroup( "gui" ); | 241 | cfg.setGroup( "gui" ); |
241 | cfg.writeEntry( "findBar", !findBar->isHidden() ); | 242 | cfg.writeEntry( "findBar", !findBar->isHidden() ); |
242 | cfg.writeEntry( "searchBar", !searchBar->isHidden() ); | 243 | cfg.writeEntry( "searchBar", !searchBar->isHidden() ); |
243 | cfg.writeEntry( "sectionBar", !sectionBar->isHidden() ); | 244 | cfg.writeEntry( "sectionBar", !sectionBar->isHidden() ); |
244 | cfg.writeEntry( "destBar", !destBar->isHidden() ); | 245 | cfg.writeEntry( "destBar", !destBar->isHidden() ); |
246 | pvDebug(7,"MainWindow::~MainWindow "); | ||
245 | 247 | ||
246 | } | 248 | } |
247 | 249 | ||
248 | void MainWindow::runIpkg() | 250 | void MainWindow::runIpkg() |
249 | { | 251 | { |
250 | packageListServers.allPackages(); | 252 | packageListServers.allPackages(); |
251 | ipkg->loadList( packageListSearch ); | 253 | ipkg->loadList( packageListSearch ); |
252 | ipkg->loadList( packageListDocLnk ); | 254 | ipkg->loadList( packageListDocLnk ); |
253 | ipkg->commit( packageListServers ); | 255 | ipkg->loadList( packageListServers ); |
256 | ipkg->commit(); | ||
254 | // ##### If we looked in the list of files, we could send out accurate | 257 | // ##### If we looked in the list of files, we could send out accurate |
255 | // ##### messages. But we don't bother yet, and just do an "all". | 258 | // ##### messages. But we don't bother yet, and just do an "all". |
256 | QCopEnvelope e("QPE/System", "linkChanged(QString)"); | 259 | QCopEnvelope e("QPE/System", "linkChanged(QString)"); |
257 | QString lf = QString::null; | 260 | QString lf = QString::null; |
258 | e << lf; | 261 | e << lf; |
259 | displayList(); | 262 | displayList(); |
260 | } | 263 | } |
261 | 264 | ||
262 | void MainWindow::updateList() | 265 | void MainWindow::updateList() |
263 | { | 266 | { |
264 | //wait->show(); | 267 | //wait->show(); |
265 | QTimer *t = new QTimer( this ); | 268 | QTimer *t = new QTimer( this ); |