summaryrefslogtreecommitdiff
path: root/src/installationmanager.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-12-09 18:09:11 +0100
committerTannin <devnull@localhost>2014-12-09 18:09:11 +0100
commitacf35da699f2bb01900552323cc1983b7f065422 (patch)
tree7b008104140d129223021390e1c575ff27aea97b /src/installationmanager.cpp
parent6eb05396e4b2b58bc75ef4f79fddfd2355c265fa (diff)
now stored installed files with each mod
Diffstat (limited to 'src/installationmanager.cpp')
-rw-r--r--src/installationmanager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp
index d6435e57..25866cb9 100644
--- a/src/installationmanager.cpp
+++ b/src/installationmanager.cpp
@@ -568,6 +568,14 @@ bool InstallationManager::doInstall(GuessedValue<QString> &modName, int modID,
}
settingsFile.setValue("installationFile", m_CurrentFile);
+ if (!merge) {
+ // this does not clear the list we have in memory but the mod is going to have to be re-read anyway
+ // btw.: installedFiles were written with beginWriteArray but we can still clear it with beginGroup. nice
+ settingsFile.beginGroup("installedFiles");
+ settingsFile.remove("");
+ settingsFile.endGroup();
+ }
+
return true;
}