mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Fix the small issue when you select by categories and then you
Ctrl+Click a subset, and those items selected were deselected svn path=/trunk/KDE/kdebase/apps/; revision=679315
This commit is contained in:
parent
78195dd8fe
commit
ad3beec4b2
1 changed files with 12 additions and 1 deletions
|
@ -826,7 +826,18 @@ void KListView::mouseReleaseEvent(QMouseEvent *event)
|
|||
{
|
||||
index = d->proxyModel->mapFromSource(mappedIndex);
|
||||
|
||||
selection.select(index, index);
|
||||
if (d->isIndexSelected.contains(index))
|
||||
{
|
||||
if (!d->isIndexSelected[index])
|
||||
selection.select(index, index);
|
||||
|
||||
d->isIndexSelected[index] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
d->isIndexSelected.insert(index, true);
|
||||
selection.select(index, index);
|
||||
}
|
||||
}
|
||||
|
||||
selectionModel()->select(selection, QItemSelectionModel::Toggle);
|
||||
|
|
Loading…
Reference in a new issue