diff options
Diffstat (limited to 'src/modlistsortproxy.cpp')
| -rw-r--r-- | src/modlistsortproxy.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index a5f2ee82..1b96af3e 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -103,6 +103,7 @@ void ModListSortProxy::enableAllVisible() int modID = mapToSource(index(i, 0)).row(); m_Profile->setModEnabled(modID, true); } + invalidate(); } @@ -199,14 +200,6 @@ bool ModListSortProxy::filterMatches(ModInfo::Ptr info, bool enabled) const ((m_CategoryFilter == CategoryFactory::CATEGORY_SPECIAL_CONFLICT) && (hasConflictFlag(info->getFlags())))); } -/*QModelIndex ModListSortProxy::mapToSource(const QModelIndex &proxyIndex) const -{ -if (proxyIndex.model() && (proxyIndex.model() != this)) { - qDebug("%p - %p - %p - %d - %d - %d", proxyIndex.model(), this, this->sourceModel(), proxyIndex.row(), proxyIndex.column(), proxyIndex.parent().isValid()); -} - return QSortFilterProxyModel::mapToSource(proxyIndex); -}*/ - bool ModListSortProxy::filterAcceptsRow(int row, const QModelIndex&) const { |
