From 989cc7e0bf17394bae7772ea1fec26cf873eb588 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 16 Jun 2008 21:19:34 +0000 Subject: also update the current index if a deselection is done svn path=/trunk/KDE/kdebase/apps/; revision=821216 --- src/selectionmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/selectionmanager.cpp b/src/selectionmanager.cpp index af92e63d0..47ef16d1a 100644 --- a/src/selectionmanager.cpp +++ b/src/selectionmanager.cpp @@ -106,10 +106,10 @@ 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); } + selModel->setCurrentIndex(index, QItemSelectionModel::Current); } } -- cgit v1.3