From 5767e27925d5576c140cc7d456cd63ef05e659dc Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 10 Feb 2019 00:44:02 +0100 Subject: Fixed crash when "Update" filter is selected and multiple mods are ignored for update. --- src/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index fe39e023..e00fac15 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4025,6 +4025,9 @@ void MainWindow::ignoreUpdate() { ModInfo::Ptr info = ModInfo::getByIndex(m_ContextRow); info->ignoreUpdate(true); } + if (m_ModListSortProxy != nullptr) { + m_ModListSortProxy->invalidate(); + } } void MainWindow::unignoreUpdate() @@ -4040,6 +4043,9 @@ void MainWindow::unignoreUpdate() ModInfo::Ptr info = ModInfo::getByIndex(m_ContextRow); info->ignoreUpdate(false); } + if (m_ModListSortProxy != nullptr) { + m_ModListSortProxy->invalidate(); + } } void MainWindow::addPrimaryCategoryCandidates(QMenu *primaryCategoryMenu, -- cgit v1.3.1