From a477f4cebbbe708dfec1e40c68f7cfc8bc93d81a Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 22 Jul 2014 17:57:01 +0200 Subject: [PATCH] use the corona package --- shell/alternativesdialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shell/alternativesdialog.cpp b/shell/alternativesdialog.cpp index 8a7c6fd81..56d686ded 100644 --- a/shell/alternativesdialog.cpp +++ b/shell/alternativesdialog.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include AlternativesDialog::AlternativesDialog(Plasma::Applet *applet, QQuickItem *parent) @@ -37,7 +38,10 @@ AlternativesDialog::AlternativesDialog(Plasma::Applet *applet, QQuickItem *paren setLocation(applet->location()); setFlags(flags()|Qt::WindowStaysOnTopHint); //We already have the proper shellpluginloader - Plasma::Package pkg = Plasma::PluginLoader::self()->loadPackage("Plasma/Shell"); + Plasma::Package pkg; + if (applet && applet->containment() && applet->containment()->corona()) { + pkg = applet->containment()->corona()->package(); + } //TODO: use the proper package: we must be in the corona pkg.setPath("org.kde.plasma.desktop");