summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropshortcutcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-28 23:00:20 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-28 23:09:33 +0300
commit739fd277e28120cd643ac443a013b482698427ba (patch)
tree3f2a154ce26753f5d2014ea50e440499ab8f9305 /src/gui/widgets/dropshortcutcontainer.cpp
parent727808b197394912f212641fb2e39088eab82060 (diff)
downloadplus-739fd277e28120cd643ac443a013b482698427ba.tar.gz
plus-739fd277e28120cd643ac443a013b482698427ba.tar.bz2
plus-739fd277e28120cd643ac443a013b482698427ba.tar.xz
plus-739fd277e28120cd643ac443a013b482698427ba.zip
Hide popups in different hidden windows.
Diffstat (limited to 'src/gui/widgets/dropshortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/dropshortcutcontainer.cpp9
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);
}