summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
authorEran Mizrahi <erasmux@gmail.com>2017-12-18 00:26:59 +0200
committerEran Mizrahi <erasmux@gmail.com>2017-12-18 20:04:44 +0200
commit90421277e7ed0044b499d81f06df95bf62111ce9 (patch)
tree5599140fc53f40e2ea1d5b2ffc93a9f8182bfe4e /src/modlist.cpp
parent4656ba9447d9bd0ebe5540a54892ec41abda047b (diff)
Ensure all mostlist writing is done through the DelayedFileWriter
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index 3afa94b5..c028432c 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -940,12 +940,12 @@ void ModList::removeRowForce(int row, const QModelIndex &parent)
m_Profile->setModEnabled(row, false);
- m_Profile->modlistWriter().cancel();
+ m_Profile->cancelModlistWrite();
beginRemoveRows(parent, row, row);
ModInfo::removeMod(row);
endRemoveRows();
m_Profile->refreshModStatus(); // removes the mod from the status list
- m_Profile->modlistWriter().write(); // this ensures the modified list gets written back before new mods can be installed
+ m_Profile->writeModlist(); // this ensures the modified list gets written back before new mods can be installed
if (wasEnabled) {
emit removeOrigin(modInfo->name());