another check for valid plugininfo

quite an edge case, but otherwise malformed packages can cause an assert
This commit is contained in:
Marco Martin 2014-09-01 18:56:18 +02:00
parent c2518b66f9
commit ddc08a2d4c

View File

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