summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-21 21:56:08 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-21 21:56:08 +0100
commitb1795f83cd500b5b58928efa5e170de8338178d5 (patch)
tree3f79cd0a016b108e4720fd08f1f0e4b13b30a66e /src/mainwindow.cpp
parentd81fb09f33f8cd668db20b6120c481580c6c938e (diff)
Refresh data tab when mods are enabled or moved.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index a79aca2f..d6391677 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -313,6 +313,12 @@ MainWindow::MainWindow(Settings &settings
setupModList();
ui->espList->setup(m_OrganizerCore, this, ui);
+ connect(m_OrganizerCore.modList(), &ModList::modPrioritiesChanged, [this]() {
+ m_DataTab->updateTree();
+ });
+ connect(m_OrganizerCore.modList(), &ModList::modStatesChanged, [this]() {
+ m_DataTab->updateTree();
+ });
ui->bsaList->setLocalMoveOnly(true);
ui->bsaList->setHeaderHidden(true);