diff --git a/src/recentmodel.cpp b/src/recentmodel.cpp index c9fba445d07fe2d7d60f4df19d75f9d7682722e6..a5b92f0e785dee2ac416128c3c072a18f10eaef7 100644 --- a/src/recentmodel.cpp +++ b/src/recentmodel.cpp @@ -1140,6 +1140,11 @@ RecentModel::peopleProxy() const PeopleProxy::PeopleProxy(RecentModel* sourceModel) { setSourceModel(sourceModel); + + /* since the filterAcceptsRow depends on the selected account, we need to re-run the filtering + * when the selected account changes automatically */ + connect( AvailableAccountModel::instance().selectionModel(), + &QItemSelectionModel::currentChanged, [this]() {this->invalidateFilter();}); } bool