diff options
| author | Tannin <devnull@localhost> | 2015-03-21 16:30:43 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-03-21 16:30:43 +0100 |
| commit | cbbc2d191d2e7d24dd31d8ac451da387836814d8 (patch) | |
| tree | 7236c84631e880e5f091ac840e7300da93d95610 /src/modlistsortproxy.cpp | |
| parent | cad7ed47bef977a3e4fdf0fe762baf5b28f29687 (diff) | |
bugfix: crash when entering search terms for the mod list
Diffstat (limited to 'src/modlistsortproxy.cpp')
| -rw-r--r-- | src/modlistsortproxy.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 56783132..d649996f 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -37,7 +37,6 @@ ModListSortProxy::ModListSortProxy(Profile* profile, QObject *parent) , m_CurrentFilter()
, m_FilterActive(false)
, m_FilterMode(FILTER_AND)
- , m_BeingInvalidated(false)
{
m_EnabledColumns.set(ModList::COL_FLAGS);
m_EnabledColumns.set(ModList::COL_NAME);
@@ -198,10 +197,9 @@ void ModListSortProxy::updateFilter(const QString &filter) {
m_CurrentFilter = filter;
updateFilterActive();
- // workaround because qt throws a fit if, as a result of this invalidation, another invalidate is called
- m_BeingInvalidated = true;
- invalidateFilter();
- m_BeingInvalidated = false;
+ // using invalidateFilter here should be enough but that crashes the application? WTF?
+ // invalidateFilter();
+ invalidate();
}
bool ModListSortProxy::hasConflictFlag(const std::vector<ModInfo::EFlag> &flags) const
|
