diff options
| author | Silarn <jrim@rimpo.org> | 2019-12-11 14:28:42 -0600 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2019-12-11 14:28:42 -0600 |
| commit | 1d0b202ee64fe12d23922e816812749e8fe40bf6 (patch) | |
| tree | 5fab87dc8d9291e85b425a6685357d5457d0e0d2 /src | |
| parent | 19bb86a870a88b65cce0eca2b6b71348d2769f51 (diff) | |
Check the enum
Diffstat (limited to 'src')
| -rw-r--r-- | src/installationmanager.cpp | 2 | ||||
| -rw-r--r-- | src/organizercore.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index 1bfc846e..a759913e 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -881,7 +881,7 @@ IPluginInstaller::EInstallResult InstallationManager::install(const QString &fil hasIniTweaks = (iniTweakNode != filesTree->nodesEnd()) && ((*iniTweakNode)->numLeafs() != 0); } - return installResult; + return IPluginInstaller::RESULT_SUCCESS; } break; case IPluginInstaller::RESULT_NOTATTEMPTED: { continue; diff --git a/src/organizercore.cpp b/src/organizercore.cpp index 4ba38dbb..df505202 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -710,7 +710,7 @@ MOBase::IModInterface *OrganizerCore::installMod(const QString &fileName, } m_CurrentProfile->writeModlistNow(); m_InstallationManager.setModsDirectory(m_Settings.paths().mods()); - if (m_InstallationManager.install(fileName, modName, hasIniTweaks)) { + if (m_InstallationManager.install(fileName, modName, hasIniTweaks) == IPluginInstaller::RESULT_SUCCESS) { MessageDialog::showMessage(tr("Installation successful"), qApp->activeWindow()); refreshModList(); @@ -778,7 +778,7 @@ void OrganizerCore::installDownload(int index) bool hasIniTweaks = false; m_InstallationManager.setModsDirectory(m_Settings.paths().mods()); - if (m_InstallationManager.install(fileName, modName, hasIniTweaks)) { + if (m_InstallationManager.install(fileName, modName, hasIniTweaks) == IPluginInstaller::RESULT_SUCCESS) { MessageDialog::showMessage(tr("Installation successful"), qApp->activeWindow()); refreshModList(); |
