diff options
author | Johannes Schickel | 2012-06-20 03:31:50 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-06-20 03:31:50 +0200 |
commit | 80ae9d7d34234e6cf9a7464723691d7b2b72cb26 (patch) | |
tree | c626f3b353cc1a7fe10255778c253c9e68d66d40 /gui/gui-manager.cpp | |
parent | 72ea449431d9db61c45160f7c42d546599e84afe (diff) | |
download | scummvm-rg350-80ae9d7d34234e6cf9a7464723691d7b2b72cb26.tar.gz scummvm-rg350-80ae9d7d34234e6cf9a7464723691d7b2b72cb26.tar.bz2 scummvm-rg350-80ae9d7d34234e6cf9a7464723691d7b2b72cb26.zip |
GUI: Allow tooltips to be changed after widget creation.
Diffstat (limited to 'gui/gui-manager.cpp')
-rw-r--r-- | gui/gui-manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/gui-manager.cpp b/gui/gui-manager.cpp index abd781e1a3..a0ef4216aa 100644 --- a/gui/gui-manager.cpp +++ b/gui/gui-manager.cpp @@ -381,7 +381,7 @@ void GuiManager::runLoop() { if (tooltipCheck && _lastMousePosition.time + kTooltipDelay < _system->getMillis()) { Widget *wdg = activeDialog->findWidget(_lastMousePosition.x, _lastMousePosition.y); - if (wdg && wdg->getTooltip() && !(wdg->getFlags() & WIDGET_PRESSED)) { + if (wdg && wdg->hasTooltip() && !(wdg->getFlags() & WIDGET_PRESSED)) { Tooltip *tooltip = new Tooltip(); tooltip->setup(activeDialog, wdg, _lastMousePosition.x, _lastMousePosition.y); tooltip->runModal(); |