diff options
Diffstat (limited to 'src/dolphindetailsview.cpp')
| -rw-r--r-- | src/dolphindetailsview.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index dc9048225..470cafa1d 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -358,12 +358,7 @@ void DolphinDetailsView::currentChanged(const QModelIndex& current, const QModel // Stay consistent with QListView: When changing the current index by key presses, // also change the selection. - const Qt::KeyboardModifiers modifier = QApplication::keyboardModifiers(); - const bool adjustSelection = !(modifier & Qt::ShiftModifier) && - !(modifier & Qt::ControlModifier) && - !m_showElasticBand; - - if (adjustSelection) { + if (QApplication::mouseButtons() == Qt::NoButton) { selectionModel()->select(current, QItemSelectionModel::ClearAndSelect); } } |
