summaryrefslogtreecommitdiff
path: root/src/modlistsortproxy.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-03-27 12:32:23 +0100
committerTannin <devnull@localhost>2013-03-27 12:32:23 +0100
commit10485e15e4de3e1a6c30733ad2d4850591d31509 (patch)
treed4ca59328823e5d6ff8be6f403f0eb8c5c7cf05a /src/modlistsortproxy.cpp
parentec0ea9df8dabe686d3256665c7ed638660309915 (diff)
- some cleanup to hookdll
- exchanged grouping proxies with existing solution from the kde project
Diffstat (limited to 'src/modlistsortproxy.cpp')
-rw-r--r--src/modlistsortproxy.cpp9
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
{