From 1d0b202ee64fe12d23922e816812749e8fe40bf6 Mon Sep 17 00:00:00 2001 From: Silarn Date: Wed, 11 Dec 2019 14:28:42 -0600 Subject: Check the enum --- src/installationmanager.cpp | 2 +- src/organizercore.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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(); -- cgit v1.3.1