summaryrefslogtreecommitdiff
path: root/src/installationmanager.cpp
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2020-10-21 20:08:01 +0200
committerGitHub <noreply@github.com>2020-10-21 20:08:01 +0200
commit52cfb8e8a7609c8b763652e1575a769dd5fe1b02 (patch)
tree6febde8afe518f8f33a1067b734cf2faadb760ca /src/installationmanager.cpp
parentef82ddd36ae30e654841257634b26fa563319f9b (diff)
parent3c1f206d7d29d3b3d27082aca23dafd87a95a71b (diff)
Merge pull request #1260 from Holt59/iplugin-setactive-fix
Fix usage of isActive
Diffstat (limited to 'src/installationmanager.cpp')
-rw-r--r--src/installationmanager.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp
index e4937ed9..e9773a95 100644
--- a/src/installationmanager.cpp
+++ b/src/installationmanager.cpp
@@ -860,7 +860,9 @@ QStringList InstallationManager::getSupportedExtensions() const
void InstallationManager::notifyInstallationStart(QString const& archive, bool reinstallation, ModInfo::Ptr currentMod)
{
for (auto* installer : m_Installers) {
- installer->onInstallationStart(archive, reinstallation, currentMod.get());
+ if (installer->isActive()) {
+ installer->onInstallationStart(archive, reinstallation, currentMod.get());
+ }
}
}
@@ -869,6 +871,8 @@ void InstallationManager::notifyInstallationEnd(
ModInfo::Ptr newMod)
{
for (auto* installer : m_Installers) {
- installer->onInstallationEnd(result, newMod.get());
+ if (installer->isActive()) {
+ installer->onInstallationEnd(result, newMod.get());
+ }
}
}