Summary: | Album view is reset by changing settings | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Gandalf Lechner <gandalflechner> |
Component: | Setup-Collections | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.10.0 | |
Sentry Crash Report: |
Description
Gandalf Lechner
2008-07-31 17:48:51 UTC
Marcel, I confirm this bug. Gilles Oh yes I was once fixing that but forgot later on. I will see that there is no full Albummanager reload anymore after setup (only if the database file actually changed) SVN commit 851604 by mwiesweg: Dont cause an AlbumManager reset each time exiting setup, this is only necessary for the rare case of a db path change. BUG: 167867 M +6 -3 digikamapp.cpp --- trunk/extragear/graphics/digikam/digikam/digikamapp.cpp #851603:851604 @@ -1903,11 +1903,14 @@ //if(AlbumSettings::instance()->getAlbumLibraryPath() != AlbumManager::instance()->getLibraryPath()) // d->view->clearHistory(); - if (AlbumManager::instance()->setDatabase(AlbumSettings::instance()->getDatabaseFilePath(), false)) - AlbumManager::instance()->startScan(); + if (!AlbumManager::instance()->databaseEqual(AlbumSettings::instance()->getDatabaseFilePath())) + { + if (AlbumManager::instance()->setDatabase(AlbumSettings::instance()->getDatabaseFilePath(), false)) + AlbumManager::instance()->startScan(); + } if(AlbumSettings::instance()->getShowFolderTreeViewItemsCount()) - AlbumManager::instance()->refresh(); + AlbumManager::instance()->prepareItemCounts(); d->view->applySettings(); d->albumIconViewFilter->readSettings(); |