diff options
| author | Tannin <devnull@localhost> | 2013-03-29 10:26:19 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-03-29 10:26:19 +0100 |
| commit | d9a6dbb916236531a96b9b84b06e7be666c05d56 (patch) | |
| tree | 2d143e96ae60a27738a16b310c712145d4a0aa55 /src/modlistsortproxy.cpp | |
| parent | f682f82db5d8ba514e927c9d7e88107348d5c32a (diff) | |
| parent | a47d9717884953b18b4b29e596d3e5a7d766e56e (diff) | |
Merge
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(); } |
