another check for valid plugininfo
quite an edge case, but otherwise malformed packages can cause an assert
This commit is contained in:
parent
c2518b66f9
commit
ddc08a2d4c
@ -206,7 +206,7 @@ uint AppletInterface::id() const
|
||||
|
||||
QString AppletInterface::pluginName() const
|
||||
{
|
||||
return applet()->pluginInfo().pluginName();
|
||||
return applet()->pluginInfo().isValid() ? applet()->pluginInfo().pluginName() : QString();
|
||||
}
|
||||
|
||||
QString AppletInterface::icon() const
|
||||
|
Loading…
Reference in New Issue
Block a user