[Digikam-devel] [Bug 112971] after rotating an image, the first image in the folder get's the keyboard focus

Renchi Raju renchi.raju at kdemail.net
Wed Sep 21 15:50:44 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=112971         
renchi.raju kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From renchi.raju kdemail net  2005-09-21 15:50 -------
SVN commit 462605 by pahlibar:

do not lose current item on a re-sort of items

BUGS: 112971 105663


 M  +12 -5     iconview.cpp  


--- trunk/extragear/graphics/digikam/digikam/iconview.cpp #462604:462605
 @ -516,12 +516,19  @
     
     delete [] groups;
 
-    // set the currItem to first item
-    
-    d->currItem = 0;
-    if (d->firstGroup)
-        d->currItem = d->firstGroup->firstItem();
+    if (!d->currItem)
+    {
+        // set the currItem to first item
+        if (d->firstGroup)
+            d->currItem = d->firstGroup->firstItem();
+    }
     d->anchorItem = d->currItem;
+
+    if (d->currItem)
+    {
+        d->currItem->setSelected(true, true);
+        ensureItemVisible(d->currItem);
+    }
 }
 
 void IconView::slotUpdate()


More information about the Digikam-devel mailing list