From 1ab5453a90ce760f5c97711b1433e48be2236fdf Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 15 Apr 2024 00:46:26 +0200 Subject: [PATCH] EffectLoader: Warn about trying to load an invalid effect If the metadata of the effect is invalid, loadEffect will complain rather than failing silently, making debugging issues a bit harder and it's something that we are already checking for and shouldn't realistically be happening. --- src/effect/effectloader.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/effect/effectloader.cpp b/src/effect/effectloader.cpp index d2b209b6f9..8f3529cd7e 100644 --- a/src/effect/effectloader.cpp +++ b/src/effect/effectloader.cpp @@ -324,9 +324,6 @@ QStringList PluginEffectLoader::listOfKnownEffects() const bool PluginEffectLoader::loadEffect(const QString &name) { const auto info = findEffect(name); - if (!info.isValid()) { - return false; - } return loadEffect(info, LoadEffectFlag::Load); }