diff options
| author | Tannin <devnull@localhost> | 2013-03-29 10:12:34 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-03-29 10:12:34 +0100 |
| commit | a47d9717884953b18b4b29e596d3e5a7d766e56e (patch) | |
| tree | 565a3f1371ff9727d31d01590f105496294570d3 /src/modlistsortproxy.cpp | |
| parent | 10485e15e4de3e1a6c30733ad2d4850591d31509 (diff) | |
| parent | 59d6b7840b1e7fdbb7475010273047b7bb185d3a (diff) | |
Merge with default
Diffstat (limited to 'src/modlistsortproxy.cpp')
| -rw-r--r-- | src/modlistsortproxy.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 1b96af3e..071e0384 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -45,10 +45,15 @@ void ModListSortProxy::setProfile(Profile *profile) m_Profile = profile; } +void ModListSortProxy::updateFilterActive() +{ + emit filterActive((m_CategoryFilter != CategoryFactory::CATEGORY_NONE) || !m_CurrentFilter.isEmpty()); +} void ModListSortProxy::setCategoryFilter(int category) { m_CategoryFilter = category; + updateFilterActive(); this->invalidate(); } @@ -165,6 +170,7 @@ bool ModListSortProxy::lessThan(const QModelIndex &left, void ModListSortProxy::updateFilter(const QString &filter) { m_CurrentFilter = filter; + updateFilterActive(); invalidateFilter(); } |
