Fix wrong arg type in addLauncher method call

We expect a QVariant instead of a QUrl

Regression from 14d10c7a05

BUG: 449243


(cherry picked from commit 4f285e5d0b)
wilder-5.24
Alexander Lohnau 4 years ago committed by Nate Graham
parent b82d67b950
commit 3c2ad99990
  1. 2
      applets/kicker/plugin/containmentinterface.cpp

@ -134,7 +134,7 @@ void ContainmentInterface::addLauncher(QObject *appletInterface, ContainmentInte
return;
}
QMetaObject::invokeMethod(rootItem, "addLauncher", Q_ARG(QUrl, QUrl::fromLocalFile(entryPath)));
QMetaObject::invokeMethod(rootItem, "addLauncher", Q_ARG(QVariant, QUrl::fromLocalFile(entryPath)));
} else {
containment->createApplet(QStringLiteral("org.kde.plasma.icon"), QVariantList() << entryPath);
}

Loading…
Cancel
Save