diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-10 19:27:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-10 19:27:16 +0300 |
commit | 051d2ee3bc0ec387acde86081d999b1c90a7806f (patch) | |
tree | 9932582eda03c3f22fa2f565f71c2401eae84dd9 /src/gui/popupmanager.cpp | |
parent | 54ff787c3015e79989cd239947b0e033673c38ee (diff) | |
download | mv-s20170810.tar.gz mv-s20170810.tar.bz2 mv-s20170810.tar.xz mv-s20170810.zip |
Hide item popup if open popupmenu.s20170810
Diffstat (limited to 'src/gui/popupmanager.cpp')
-rw-r--r-- | src/gui/popupmanager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/popupmanager.cpp b/src/gui/popupmanager.cpp index c415956ce..3aed639e9 100644 --- a/src/gui/popupmanager.cpp +++ b/src/gui/popupmanager.cpp @@ -24,8 +24,11 @@ #include "sdlshared.h" +#ifndef DYECMD #include "gui/popups/beingpopup.h" +#include "gui/popups/itempopup.h" #include "gui/popups/popupmenu.h" +#endif // DYECMD #include "gui/popups/textpopup.h" #include "debug.h" @@ -70,6 +73,14 @@ void PopupManager::hidePopupMenu() #endif // DYECMD } +void PopupManager::hideItemPopup() +{ +#ifndef DYECMD + if (itemPopup) + itemPopup->hide(); +#endif // DYECMD +} + bool PopupManager::isPopupMenuVisible() { #ifndef DYECMD |