check the propert mainText() subText()

This commit is contained in:
Marco Martin 2014-02-10 17:01:25 +01:00
parent 022db8a9af
commit 4722cf45bc

View File

@ -232,7 +232,7 @@ void ToolTip::hoverEnterEvent(QHoverEvent *event)
ToolTipDialog::instance()->keepalive();
//FIXME: showToolTip needs to be renamed in sync or something like that
showToolTip();
} else if (!m_mainItem && !m_mainText.isEmpty() && !m_subText.isEmpty()) {
} else if (!m_mainItem && !mainText().isEmpty() && !subText().isEmpty()) {
m_showTimer->start(500);
}
}