Fix EffectsHandlerImpl::getProxy

Internal name of effects no longer starts with kwin4_effect.
icc-effect-5.14.5
Martin Gräßlin 2014-04-03 11:00:25 +02:00
parent bce964cca6
commit 2d2e1976cb
1 changed files with 0 additions and 3 deletions

View File

@ -743,9 +743,6 @@ void EffectsHandlerImpl::registerAxisShortcut(Qt::KeyboardModifiers modifiers, P
void* EffectsHandlerImpl::getProxy(QString name)
{
// All effects start with "kwin4_effect_", prepend it to the name
name.prepend(QStringLiteral("kwin4_effect_"));
for (QVector< EffectPair >::const_iterator it = loaded_effects.constBegin(); it != loaded_effects.constEnd(); ++it)
if ((*it).first == name)
return (*it).second->proxy();