Version: 0.7.1 (using KDE 3.3.1, (3.1)) Compiler: gcc version 3.3.5 (Debian 1:3.3.5-3) OS: Linux (i686) release 2.6.9-1-686 While starting a slideshow using images in a tag the images are sorted by name always. This affects only the slideshow the preview is sorted correctly using the setting in 'view->sort images'
CVS commit by pahlibar: pick image list sorted as in current view for tag albums, when the list is sent to kipi-plugins BUG: 96895 M +24 -14 kipiinterface.cpp 1.17 --- kdeextragear-3/digikam/digikam/kipiinterface.cpp #1.16:1.17 @@ -366,4 +366,19 @@ KURL::List DigikamImageCollection::image KURL::List DigikamImageCollection::imagesFromTAlbum(TAlbum* album) const { + // if this album is the current album, then its already open + // just return whatevers visible in the albumitemhandler + if ( album == AlbumManager::instance()->currentAlbum() ) + { + QStringList items; + AlbumItemHandler* handler = + AlbumManager::instance()->getItemHandler(); + if (handler) + items = handler->allItemsPath(); + + return KURL::List(items); + } + + // else get the images from the database and return the items found + AlbumDB* db = AlbumManager::instance()->albumDB(); @@ -626,10 +641,5 @@ void DigikamKipiInterface::slotSelection void DigikamKipiInterface::slotCurrentAlbumChanged( Album *album ) { - bool b = false; - - if ( album ) - b = true; - - emit currentAlbumChanged( b ); + emit currentAlbumChanged( album != 0 ); }