Commit 2da2ba71 authored by Rafael Fernández López's avatar Rafael Fernández López
Browse files

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
parent bbdf7d89
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment