Bug 116520

Summary: Slideshow should work for search results as well
Product: [Applications] digikam Reporter: Dik Takken <kde>
Component: Plugin-Generic-SlideShowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: caulier.gilles, ntung
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 0.9.0

Description Dik Takken 2005-11-16 21:00:47 UTC
Version:           0.1.0_beta2 (using KDE KDE 3.4.1)
OS:                Linux

When doing a search, DigiKam generates a collection of search results. When trying to display these search results with the slideshow tool, it does not work. It would be very cool to have this working as well.
Comment 1 Tom Albers 2005-11-18 00:14:20 UTC
I think this is a digiKam bug, reassigning for now, untill I have investigated this bug. 
Comment 2 Tom Albers 2005-12-29 21:51:36 UTC
SVN commit 492401 by toma:

Make the kipi plugins also work on all images in a search folder or date folder.
BUG: 116520



 M  +13 -0     kipiinterface.cpp  


--- trunk/extragear/graphics/digikam/digikam/kipiinterface.cpp #492400:492401
@@ -355,6 +355,19 @@
         {
             return imagesFromTAlbum(dynamic_cast<TAlbum*>(album_));
         }
+        else if (album_->type() == Album::DATE || 
+                 album_->type() == Album::SEARCH)
+        {
+            AlbumItemHandler* handler =
+                    AlbumManager::instance()->getItemHandler();
+
+            if (handler)
+            {
+                return handler->allItems();
+            }
+
+            return KURL::List();
+       }
         else
         {
             kdWarning() << k_funcinfo
Comment 3 Tom Albers 2005-12-29 22:08:21 UTC
*** Bug 114510 has been marked as a duplicate of this bug. ***
Comment 4 Tom Albers 2005-12-29 22:10:58 UTC
SVN commit 492407 by toma:

backport

r492401 | toma | 2005-12-29 21:51:32 +0100 (do, 29 dec 2005) | 4 lines

Make the kipi plugins also work on all images in a search folder or date folder.
CCBUG: 116520



 M  +13 -0     kipiinterface.cpp  


--- branches/stable/extragear/graphics/digikam/digikam/kipiinterface.cpp #492406:492407
@@ -355,6 +355,19 @@
         {
             return imagesFromTAlbum(dynamic_cast<TAlbum*>(album_));
         }
+        else if (album_->type() == Album::DATE || 
+                 album_->type() == Album::SEARCH)
+        {
+            AlbumItemHandler* handler =
+                    AlbumManager::instance()->getItemHandler();
+
+            if (handler)
+            {
+                return handler->allItems();
+            }
+
+            return KURL::List();
+       }
         else
         {
             kdWarning() << k_funcinfo