From: Peter Penz Date: Mon, 16 Jun 2008 21:19:34 +0000 (+0000) Subject: also update the current index if a deselection is done X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/989cc7e0bf17394bae7772ea1fec26cf873eb588?ds=sidebyside also update the current index if a deselection is done svn path=/trunk/KDE/kdebase/apps/; revision=821216 --- 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); } }