check for applet

This commit is contained in:
Marco Martin 2012-10-22 16:39:32 +02:00
parent acdbe4556c
commit c91905047b

View File

@ -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 =