summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2019-01-10 23:51:53 +0100
committerAl <gabriel.cortesi@outlook.com>2019-01-10 23:51:53 +0100
commitd0445685bf9a1723c8550fbdf115b3b86059174c (patch)
treede10d7eb50e7de0237ba008e021c54616940c2c0 /src
parent14b117d74a9953ce415279eeb8debacd1bcd912f (diff)
Fix #523 by resetting m_URL after install.
Diffstat (limited to 'src')
-rw-r--r--src/installationmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp
index 57c5e861..50e170d2 100644
--- a/src/installationmanager.cpp
+++ b/src/installationmanager.cpp
@@ -643,6 +643,9 @@ bool InstallationManager::doInstall(GuessedValue<QString> &modName, QString game
settingsFile.setValue("repository", repository);
settingsFile.setValue("url", m_URL);
+ //cleanup of m_URL or this will persist across installs.
+ m_URL = "";
+
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