Fix EffectsHandlerImpl::getProxy

Internal name of effects no longer starts with kwin4_effect.
This commit is contained in:
Martin Gräßlin 2014-04-03 11:00:25 +02:00
parent bce964cca6
commit 2d2e1976cb

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();