[Digikam-devel] [Bug 141940] Image selection bugs (multiple and single selections)
Marcel Wiesweg
marcel.wiesweg at gmx.de
Mon Feb 26 17:01:50 GMT 2007
------- 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=141940
------- Additional Comments From marcel.wiesweg gmx de 2007-02-26 18:01 -------
SVN commit 637505 by mwiesweg:
Emit signalSelectionChanged if a selected item has been removed
CCBUG: 141940
M +9 -5 iconview.cpp
--- trunk/extragear/graphics/digikam/digikam/iconview.cpp #637504:637505
@ -490,6 +490,8 @
// Remove from selected item list
d->selectedItems.remove(item);
+ if (item->isSelected())
+ d->needEmitSelectionChanged = true;
if (d->toolTipItem == item)
{
@ -606,13 +608,15 @
d->anchorItem = d->currItem;
// ensure there is a selection
- if (d->selectedItems.isEmpty())
+ if (d->selectedItems.isEmpty() && d->currItem)
{
- if (d->currItem)
- d->currItem->setSelected(true, true);
- else // no selection
- emit signalSelectionChanged();
+ d->currItem->setSelected(true, true);
}
+ else if (d->needEmitSelectionChanged)
+ {
+ emit signalSelectionChanged();
+ }
+ d->needEmitSelectionChanged = false;
// set first visible item if they where stored before update was triggered
if (d->storedVisibleItem)
More information about the Digikam-devel
mailing list