diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-06-20 18:05:53 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-06-20 18:05:53 +0000 |
| commit | 53d0591e3f54c89ed86a4a84ef0f425874d146a0 (patch) | |
| tree | 08f660445180359d6e78e751b3e08bc1a73bf86c /src | |
| parent | a4431f2a1a5b2e2866c629bf0ebf5980a61305d1 (diff) | |
| download | qmmp-53d0591e3f54c89ed86a4a84ef0f425874d146a0.tar.gz qmmp-53d0591e3f54c89ed86a4a84ef0f425874d146a0.tar.bz2 qmmp-53d0591e3f54c89ed86a4a84ef0f425874d146a0.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/qmmp/effect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |
