don't assume containment() exists
This commit is contained in:
parent
2f17e371d5
commit
c363b33b43
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user