summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorAl <26797547+Al12rs@users.noreply.github.com>2020-09-01 03:59:22 -0700
committerGitHub <noreply@github.com>2020-09-01 03:59:22 -0700
commitfa6136c6711a0b651e2d8b652b78b055f0343c9b (patch)
treeb03b2d98dfdda0c19de1626d06dbe34c5407600f /src/organizercore.cpp
parentf0e94c26aebae6f86a59ed974e433f96e77faec7 (diff)
parent3729f18af1ee2a84756eb729e2f2b8343c51c24a (diff)
Merge pull request #1220 from Holt59/modlist-setactive-bulk
Add a bulk-version of ModList::setActive.
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 28bb06db..815c80c2 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -1552,6 +1552,9 @@ void OrganizerCore::modStatusChanged(unsigned int index)
m_DirectoryStructure->getFileRegister()->sortOrigins();
refreshLists();
+
+ m_ModList.notifyModStateChanged({ index });
+
} catch (const std::exception &e) {
reportError(tr("failed to update mod list: %1").arg(e.what()));
}
@@ -1601,6 +1604,8 @@ void OrganizerCore::modStatusChanged(QList<unsigned int> index) {
m_DirectoryStructure->getFileRegister()->sortOrigins();
refreshLists();
+
+ m_ModList.notifyModStateChanged(index);
} catch (const std::exception &e) {
reportError(tr("failed to update mod list: %1").arg(e.what()));
}