on xenial help sign in
Tiny fixes
commit7850c200625a045908799b1d23de247d36509070 authorMichal Hruby <michal.mhr@gmail.com> dateSun 11 Aug 2013, 23:20 (13 years ago) parenta283753
2 files changed+2−1
plugins/Unity/categories.cpp+1 plugins/Utils/qsortfilterproxymodelqml.cpp+1−1
plugins/Unity/categories.cpp+1
@@ -162,6 +162,7 @@ void Categories::overrideResults(const QString& categoryId, QAbstractItemModel*
162162 connect(model, &QObject::destroyed, this, &Categories::onOverrideModelDestroyed);
163163 connect(model, &QAbstractItemModel::rowsInserted, this, &Categories::onRowCountChanged);
164164 connect(model, &QAbstractItemModel::rowsRemoved, this, &Categories::onRowCountChanged);
165+ connect(model, &QAbstractItemModel::modelReset, this, &Categories::onRowCountChanged);
165166
166167 // emit the dataChanged signal if the category is already in the model
167168 for (int i = 0; i < rowCount(); i++) {
plugins/Utils/qsortfilterproxymodelqml.cpp+1−1
@@ -52,7 +52,6 @@ QSortFilterProxyModelQML::setModel(QAbstractItemModel *itemModel)
5252 connect(itemModel, SIGNAL(rowsInserted(QModelIndex,int,int)), SIGNAL(totalCountChanged()));
5353 connect(itemModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), SIGNAL(totalCountChanged()));
5454 Q_EMIT totalCountChanged();
55− Q_EMIT countChanged();
5655 Q_EMIT modelChanged();
5756 }
5857}
@@ -95,6 +94,7 @@ QSortFilterProxyModelQML::setInvertMatch(bool invertMatch)
9594 if (invertMatch != m_invertMatch) {
9695 m_invertMatch = invertMatch;
9796 Q_EMIT invertMatchChanged(invertMatch);
97+ invalidateFilter();
9898 }
9999}
100100