[Digikam-devel] [Bug 111873] Modifying and then navigating in the thumbbar does not update photo thumbnail

Gilles Caulier caulier.gilles at free.fr
Fri Sep 9 09:28:32 CEST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=111873         




------- Additional Comments From caulier.gilles free fr  2005-09-09 09:28 -------
SVN commit 458880 by cgilles:

showfoto BugFix : Forget to commit this patch to don't prompt user about to save image after to do SaveAs operation.
CCBUG: 111873     

 M  +6 -13     showfoto.cpp  


--- trunk/extragear/graphics/digikam/showfoto/showfoto.cpp #458879:458880
 @ -758,23 +758,15  @
         return;
     }
 
+    m_canvas->setModified( false );
+    
     // add the file to the list of images if it's not there already
-    Digikam::ThumbBarItem* foundItem = 0;
-    for (Digikam::ThumbBarItem *item = m_bar->firstItem(); item; item = item->next())
-    {
-        if (item->url().equals(saveAsURL))
-        {
-            foundItem = item;
-            m_bar->invalidateThumb(item);
-            break;
-        }
-    }
+    Digikam::ThumbBarItem* foundItem = m_bar->findItemByURL(saveAsURL);
+    m_bar->invalidateThumb(foundItem);
 
     if (!foundItem)
-    {
         foundItem = new Digikam::ThumbBarItem(m_bar, saveAsURL);
-    }
-
+    
     m_bar->setSelected(foundItem);
     kapp->restoreOverrideCursor();
 }
 @ -828,6 +820,7  @
     
     QString tmpFile = url.directory() + QString("/.showfoto-tmp-")
                       + url.filename();
+    
     if (!m_canvas->saveAsTmpFile(tmpFile, m_JPEGCompression, m_PNGCompression,
                                  m_TIFFCompression))
     {


More information about the Digikam-devel mailing list