X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fselectionmodelsynchronizer.cpp;h=14c57c06078e37545ad05a36108cb68dda24f32a;hp=0dcf7f8e1e45cb72722a71ff42c010768c9b3f6c;hb=30cc5367bf38d8720e55ece5cab218c4b52e0dbf;hpb=bd2417d2ac819a46436c4f029c880d7f26b9e2a2 diff --git a/src/client/selectionmodelsynchronizer.cpp b/src/client/selectionmodelsynchronizer.cpp index 0dcf7f8e..14c57c06 100644 --- a/src/client/selectionmodelsynchronizer.cpp +++ b/src/client/selectionmodelsynchronizer.cpp @@ -255,6 +255,13 @@ void SelectionModelSynchronizer::currentChanged(const QModelIndex ¤t, cons ++iter; } _changeCurrentEnabled = true; + + // Trigger a dataChanged() signal from the base model to update all proxy models (e.g. filters). + // Since signals are protected, we have to use invokeMethod for faking signal emission. + if (previous.isValid()) { + QMetaObject::invokeMethod(model(), "dataChanged", Qt::DirectConnection, + Q_ARG(QModelIndex, previous), Q_ARG(QModelIndex, previous)); + } }