X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fselectionmodelsynchronizer.cpp;h=169fddcd43a796b36fde1cc386149d4419f6336c;hp=ef0b94789c0186c4f266f57763af4254e69ee62d;hb=a3a8e528916f4930bd731ed074bcdd190d4fe327;hpb=e226a532d5f6cb4ff58edd30421386c6f8dc7d4d diff --git a/src/client/selectionmodelsynchronizer.cpp b/src/client/selectionmodelsynchronizer.cpp index ef0b9478..169fddcd 100644 --- a/src/client/selectionmodelsynchronizer.cpp +++ b/src/client/selectionmodelsynchronizer.cpp @@ -80,7 +80,7 @@ void SelectionModelSynchronizer::removeSelectionModel(MappedSelectionModel *mode } void SelectionModelSynchronizer::_mappedCurrentChanged(const QModelIndex ¤t) { - emit setCurrentIndex(current, QItemSelectionModel::ClearAndSelect); + emit setCurrentIndex(current, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows); } void SelectionModelSynchronizer::_mappedSelectionChanged(const QItemSelection &selected) { @@ -89,7 +89,7 @@ void SelectionModelSynchronizer::_mappedSelectionChanged(const QItemSelection &s void SelectionModelSynchronizer::_regularCurrentChanged(const QModelIndex &newCurrent, const QModelIndex &oldCurrent) { Q_UNUSED(oldCurrent) - emit setCurrentIndex(newCurrent, QItemSelectionModel::ClearAndSelect); + emit setCurrentIndex(newCurrent, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows); } void SelectionModelSynchronizer::_regularSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected) {