diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-01-13 13:42:56 +0100 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2019-01-13 13:42:56 +0100 |
| commit | 5efba39f86dd1bcd542f53d0839de521ec052fb5 (patch) | |
| tree | ef6137869354b47b05499fa5b20dec7b168f7f1a /src/modlistsortproxy.cpp | |
| parent | 821ca7416683a8ac1e9906bb28a31265f67dbb98 (diff) | |
Fixed invalid vector access on modInfoDialog closing.
Diffstat (limited to 'src/modlistsortproxy.cpp')
| -rw-r--r-- | src/modlistsortproxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 94139715..35e496a0 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -59,7 +59,7 @@ void ModListSortProxy::updateFilterActive() void ModListSortProxy::setCategoryFilter(const std::vector<int> &categories)
{
//avoid refreshing the filter unless we are checking all mods for update.
- if (categories != m_CategoryFilter || categories.at(0) == CategoryFactory::CATEGORY_SPECIAL_UPDATEAVAILABLE) {
+ if (categories != m_CategoryFilter || (!categories.empty() && categories.at(0) == CategoryFactory::CATEGORY_SPECIAL_UPDATEAVAILABLE)) {
m_CategoryFilter = categories;
updateFilterActive();
invalidate();
|
