From 53d0591e3f54c89ed86a4a84ef0f425874d146a0 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 20 Jun 2021 18:05:53 +0000 Subject: do not load all effect plugins on startup git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@10070 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/effect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/qmmp/effect.cpp b/src/qmmp/effect.cpp index 76fd4000c..8b45905b6 100644 --- a/src/qmmp/effect.cpp +++ b/src/qmmp/effect.cpp @@ -176,10 +176,10 @@ bool Effect::isEnabled(const EffectFactory *factory) EffectFactory *Effect::findFactory(const QString &shortName) { loadPlugins(); - for(EffectFactory *f : factories()) + for(QmmpPluginCache *item : qAsConst(*m_cache)) { - if(shortName == f->properties().shortName) - return f; + if(item->shortName() == shortName) + return item->effectFactory(); } return nullptr; } -- cgit v1.2.3-13-gbd6f