don't assume containment() exists

This commit is contained in:
Marco Martin 2014-02-05 16:39:06 +01:00
parent 2f17e371d5
commit c363b33b43

View File

@ -124,7 +124,11 @@ Plasma::Types::Location AppletInterface::location() const
QString AppletInterface::currentActivity() const
{
return applet()->containment()->activity();
if (applet()->containment()) {
return applet()->containment()->activity();
} else {
return QString();
}
}
QObject* AppletInterface::configuration() const