summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-27 14:55:20 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:14 +0100
commitd0512da75805be194d949a6d6bac8184314da0e6 (patch)
tree27758203a442e3e90510d8c5d8f89848d6f5ffd8 /src/modlist.cpp
parentbe0d6aef00891286f33242073627611413ad79c4 (diff)
Use an intermediate structure to store the separator tree.
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index c8056140..4191e2db 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -1236,8 +1236,8 @@ void ModList::removeRowForce(int row, const QModelIndex &parent)
m_Profile->cancelModlistWrite();
beginRemoveRows(parent, row, row);
ModInfo::removeMod(row);
- endRemoveRows();
m_Profile->refreshModStatus(); // removes the mod from the status list
+ endRemoveRows();
m_Profile->writeModlist(); // this ensures the modified list gets written back before new mods can be installed
notifyModRemoved(modInfo->name());