diff options
| author | Al <26797547+Al12rs@users.noreply.github.com> | 2020-02-14 14:01:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-14 14:01:58 +0100 |
| commit | 86c5b64ab5d1b57f0bc1f184983adb0936e6de3f (patch) | |
| tree | f6335974c807a67bc53327223b95fd6a33df4ce1 /src | |
| parent | 2af0698484ec316e420fa0d223a97f9d4a07b47e (diff) | |
| parent | 460e015e9646749e40a5a67d38dfd001ba5c4aba (diff) | |
Merge pull request #997 from Al12rs/custom_url_overwrite_fix
Avoid overwriting existing URL values when replacing a mod if new val…
Diffstat (limited to 'src')
| -rw-r--r-- | src/installationmanager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index c3aeec88..d62067c2 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -653,7 +653,10 @@ IPluginInstaller::EInstallResult InstallationManager::doInstall(GuessedValue<QSt settingsFile.setValue("nexusFileStatus", fileCategoryID); settingsFile.setValue("installationFile", m_CurrentFile); settingsFile.setValue("repository", repository); - settingsFile.setValue("url", m_URL); + + if (!m_URL.isEmpty() || !settingsFile.contains("url")) { + settingsFile.setValue("url", m_URL); + } //cleanup of m_URL or this will persist across installs. m_URL = ""; |
