[Digikam-devel] [Bug 161084] not properly updates status bar info

Marcel Wiesweg marcel.wiesweg at gmx.de
Tue Apr 22 14:01:38 BST 2008


------- 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=161084         




------- Additional Comments From marcel.wiesweg gmx de  2008-04-22 15:01 -------
This would be a working, quick fix:
Index: digikam/iconview.cpp
===================================================================
--- digikam/iconview.cpp        (Revision 799809)
+++ digikam/iconview.cpp        (Arbeitskopie)
 @ -517,7 +517,8  @

     // Remove from selected item list
     d->selectedItems.remove(item);
-    if (item->isSelected())
+    // See bug 161084
+    if (d->selectedItems.count() || item->isSelected())
         d->needEmitSelectionChanged = true;

     if (d->toolTipItem == item)

but there has not been any change in that area lately, so if as Gilles said this bug was introduced since beta1, the reason must be elsewhere. Currently I dont know how this could have worked. The status line is updated on signalSelectionChanged, and when one item is selected and remains selected, although all other items are removed, the selection does not changed. The patch above causes emitting the signal always if there is a selection and any item is removed (so it's then signalSelectionChangedOrTotalNumberOfItemsChanged() actually ;-) )



More information about the Digikam-devel mailing list