From c91905047bc8afc0aa74f69724069e9a724c7f78 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 22 Oct 2012 16:39:32 +0200 Subject: [PATCH 1/2] check for applet --- private/applethandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/applethandle.cpp b/private/applethandle.cpp index a24728f08..583428eac 100644 --- a/private/applethandle.cpp +++ b/private/applethandle.cpp @@ -237,7 +237,7 @@ void AppletHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti QLinearGradient g(QPoint(0, 0), QPoint(m_decorationRect.width(), 0)); //fading out panel - if (m_applet->backgroundHints() != Plasma::Applet::NoBackground && + if (m_applet && m_applet->backgroundHints() != Plasma::Applet::NoBackground && m_rect.height() > qreal(minimumHeight()) * 1.25) { if (m_buttonsOnRight) { qreal opaquePoint = From 8af1a4d2f1be0ef37b27c8f5feac90b83139ae4f Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Thu, 25 Oct 2012 21:18:41 +0200 Subject: [PATCH 2/2] prep newly loaded runners if we're running a match --- runnermanager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runnermanager.cpp b/runnermanager.cpp index 845fe224c..3c46f8c45 100644 --- a/runnermanager.cpp +++ b/runnermanager.cpp @@ -293,6 +293,9 @@ public: kDebug() << "================= loading runner:" << service->name() << "================="; QObject::connect(runner, SIGNAL(matchingSuspended(bool)), q, SLOT(runnerMatchingSuspended(bool))); QMetaObject::invokeMethod(runner, "init"); + if (prepped) { + emit runner->prepare(); + } } return runner;