fix the condition

This commit is contained in:
Marco Martin 2014-02-10 17:04:39 +01:00
parent 4722cf45bc
commit 4e25b59b8e

View File

@ -232,7 +232,8 @@ 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 && !mainText().isEmpty() && !subText().isEmpty()) {
} else if (m_mainItem ||
(!mainText().isEmpty() && !subText().isEmpty())) {
m_showTimer->start(500);
}
}