diff options
| author | Tannin <devnull@localhost> | 2013-03-27 21:04:27 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-03-27 21:04:27 +0100 |
| commit | b4220cf2f4e1998299517490244a48f7ec2b0235 (patch) | |
| tree | 251c975507250eabd6c8a541b6c345cbf72288a7 /src/modlistsortproxy.cpp | |
| parent | 10485e15e4de3e1a6c30733ad2d4850591d31509 (diff) | |
| parent | e0eb97922d5ef4a1448e76f13374ebfda7fda403 (diff) | |
Merge with branch1.0
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(); } |
