another valid plugininfo guard

This commit is contained in:
Marco Martin 2014-09-01 18:35:09 +02:00
parent a54da78ce8
commit c2518b66f9

View File

@ -268,7 +268,7 @@ void AppletInterface::setToolTipMainText(const QString &text)
QString AppletInterface::toolTipSubText() const
{
if (m_toolTipSubText.isNull()) {
if (m_toolTipSubText.isNull() && applet()->pluginInfo().isValid()) {
return applet()->pluginInfo().comment();
} else {
return m_toolTipSubText;