debugger: Do not display empty tooltips

Task-number: QTCREATORBUG-6893
Change-Id: Idb780e97c23f6cc5d1bcede149959b2e58f9eaa2
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-02-07 15:39:27 +01:00
committed by hjk
parent 84b82446e0
commit 9c57b1000f
3 changed files with 9 additions and 3 deletions

View File

@@ -1893,5 +1893,11 @@ void WatchHandler::resetLocation()
}
}
bool WatchHandler::isValidToolTip(const QByteArray &iname) const
{
WatchItem *item = m_tooltips->findItem(iname, m_tooltips->m_root);
return item && !item->type.trimmed().isEmpty();
}
} // namespace Internal
} // namespace Debugger