summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-13 12:38:09 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-13 12:38:09 +0300
commit927c411f815131a03eea065231d043692465c573 (patch)
tree18f22fffd864d356b5b4ae0dbefaa74587762eb3 /src/gui/viewport.cpp
parent17b582cf14f6bb1f8f813b0753e9d7049d834799 (diff)
downloadManaVerse-927c411f815131a03eea065231d043692465c573.tar.gz
ManaVerse-927c411f815131a03eea065231d043692465c573.tar.bz2
ManaVerse-927c411f815131a03eea065231d043692465c573.tar.xz
ManaVerse-927c411f815131a03eea065231d043692465c573.zip
Close popup menu by quit key (ESC).
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 79e536c2f..ba8414699 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -819,3 +819,8 @@ void Viewport::moveCamera(int dx, int dy)
mCameraRelativeX += dx;
mCameraRelativeY += dy;
}
+
+bool Viewport::isPopupMenuVisible()
+{
+ return mPopupMenu ? mPopupMenu->isVisible() : false;
+}