diff options
author | Eugene Sandulenko | 2010-06-15 10:56:30 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-06-15 10:56:30 +0000 |
commit | dc57c684547bab8368d05a3822d1848d62211dd0 (patch) | |
tree | 8e4bbe9f986d38287bcffb882b6ee4d1ddf852cc /gui | |
parent | 67bc7115804b6f256f776fc761f7fffffa901c31 (diff) | |
download | scummvm-rg350-dc57c684547bab8368d05a3822d1848d62211dd0.tar.gz scummvm-rg350-dc57c684547bab8368d05a3822d1848d62211dd0.tar.bz2 scummvm-rg350-dc57c684547bab8368d05a3822d1848d62211dd0.zip |
GUI: Fix crash.
svn-id: r49784
Diffstat (limited to 'gui')
-rw-r--r-- | gui/widget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp index 6b5095f89e..27cae0123d 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -260,6 +260,9 @@ void Tooltip::setVisible(bool state) { return; if (state) { + if (!_guiManager->getTopDialog()) + return; + Widget *wdg = _guiManager->getTopDialog()->findWidget(_mouseX, _mouseY); if (!wdg) |