summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
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;
+}