Remove the tool tip if an empty or NULL string is set.

This commit is contained in:
Axel Dörfler
2012-04-28 22:14:01 +02:00
parent 96493c29bc
commit 254640bfcd
+3
View File
@@ -4821,6 +4821,9 @@ BView::SetToolTip(const char* text)
HideToolTip();
SetToolTip(static_cast<BToolTip*>(NULL));
if (text == NULL || text[0] == '\0')
return;
if (BTextToolTip* tip = dynamic_cast<BTextToolTip*>(fToolTip))
tip->SetText(text);
else