also adjust the current index when selecting an item by the (+) selector

svn path=/trunk/KDE/kdebase/apps/; revision=821197
This commit is contained in:
Peter Penz 2008-06-16 20:02:06 +00:00
parent 836849c785
commit 350197cee9

View file

@ -106,6 +106,7 @@ void SelectionManager::setItemSelected(bool selected)
QItemSelectionModel* selModel = m_view->selectionModel();
if (selected) {
selModel->select(index, QItemSelectionModel::Select);
selModel->setCurrentIndex(index, QItemSelectionModel::Select);
} else {
selModel->select(index, QItemSelectionModel::Deselect);
}