summaryrefslogtreecommitdiff
path: root/src/modlistsortproxy.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-05-04 14:50:01 +0200
committerTannin <devnull@localhost>2014-05-04 14:50:01 +0200
commit6fb36d6c028d4fe88043c764e42b54df9b06f48b (patch)
tree8c23cfc17447d217d91eb170cffa5a6372f003b1 /src/modlistsortproxy.cpp
parentea1f959ad592c1f10c5c60908e01c220aed206a5 (diff)
- main window now has a small view displaying log messages
- mod list will now be highlighted when grouping is active is active - download tooltip now supports bbcode markup in the description - bbcode translator will now translate some named colors - algorithm for detection of mod order problems is now more sophisticated - exposed more functionality to python plugins - updated to qt 4.8.6 dlls - bugfix: plugin list wasn't - bugfix: state changes in mod list wasn't always reported - bugfix: loot client will now create necessary directory - bugfix: NCC sometimes used wrong source path for extracting - bugfix: removed noisy debug message
Diffstat (limited to 'src/modlistsortproxy.cpp')
-rw-r--r--src/modlistsortproxy.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp
index 4d767230..49f37726 100644
--- a/src/modlistsortproxy.cpp
+++ b/src/modlistsortproxy.cpp
@@ -28,8 +28,11 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
ModListSortProxy::ModListSortProxy(Profile* profile, QObject *parent)
- : QSortFilterProxyModel(parent), m_Profile(profile),
- m_CategoryFilter(), m_CurrentFilter()
+ : QSortFilterProxyModel(parent)
+ , m_Profile(profile)
+ , m_CategoryFilter()
+ , m_CurrentFilter()
+ , m_FilterActive(false)
{
m_EnabledColumns.set(ModList::COL_FLAGS);
m_EnabledColumns.set(ModList::COL_NAME);
@@ -47,7 +50,8 @@ void ModListSortProxy::setProfile(Profile *profile)
void ModListSortProxy::updateFilterActive()
{
- emit filterActive((m_CategoryFilter.size() > 0) || !m_CurrentFilter.isEmpty());
+ m_FilterActive = (m_CategoryFilter.size() > 0) || !m_CurrentFilter.isEmpty();
+ emit filterActive(m_FilterActive);
}
void ModListSortProxy::setCategoryFilter(const std::vector<int> &categories)