diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-28 23:00:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-28 23:09:33 +0300 |
commit | 739fd277e28120cd643ac443a013b482698427ba (patch) | |
tree | 3f2a154ce26753f5d2014ea50e440499ab8f9305 /src/gui/widgets/dropshortcutcontainer.cpp | |
parent | 727808b197394912f212641fb2e39088eab82060 (diff) | |
download | manaverse-739fd277e28120cd643ac443a013b482698427ba.tar.gz manaverse-739fd277e28120cd643ac443a013b482698427ba.tar.bz2 manaverse-739fd277e28120cd643ac443a013b482698427ba.tar.xz manaverse-739fd277e28120cd643ac443a013b482698427ba.zip |
Hide popups in different hidden windows.
Diffstat (limited to 'src/gui/widgets/dropshortcutcontainer.cpp')
-rw-r--r-- | src/gui/widgets/dropshortcutcontainer.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/widgets/dropshortcutcontainer.cpp b/src/gui/widgets/dropshortcutcontainer.cpp index b628cf2d4..1fa272448 100644 --- a/src/gui/widgets/dropshortcutcontainer.cpp +++ b/src/gui/widgets/dropshortcutcontainer.cpp @@ -306,5 +306,12 @@ void DropShortcutContainer::mouseMoved(gcn::MouseEvent &event) // Hide ItemTooltip void DropShortcutContainer::mouseExited(gcn::MouseEvent &event A_UNUSED) { - mItemPopup->setVisible(false); + if (mItemPopup) + mItemPopup->setVisible(false); +} + +void DropShortcutContainer::widgetHidden(const gcn::Event &event A_UNUSED) +{ + if (mItemPopup) + mItemPopup->setVisible(false); } |