GUI: Fix crash.

svn-id: r49784
This commit is contained in:
Eugene Sandulenko 2010-06-15 10:56:30 +00:00
parent 67bc711580
commit dc57c68454

View File

@ -260,6 +260,9 @@ void Tooltip::setVisible(bool state) {
return; return;
if (state) { if (state) {
if (!_guiManager->getTopDialog())
return;
Widget *wdg = _guiManager->getTopDialog()->findWidget(_mouseX, _mouseY); Widget *wdg = _guiManager->getTopDialog()->findWidget(_mouseX, _mouseY);
if (!wdg) if (!wdg)