summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-21 00:42:40 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-21 02:50:12 +0300
commitf3fcd24e8597feaabab67d0d354aef803958a465 (patch)
tree06b17d34696a7acca422a26352d022f31e51ce90 /src/gui/viewport.cpp
parentdff5c359fc0aec10a63556b7072d5e724ec0bf8e (diff)
downloadmanaplus-f3fcd24e8597feaabab67d0d354aef803958a465.tar.gz
manaplus-f3fcd24e8597feaabab67d0d354aef803958a465.tar.bz2
manaplus-f3fcd24e8597feaabab67d0d354aef803958a465.tar.xz
manaplus-f3fcd24e8597feaabab67d0d354aef803958a465.zip
Fix possible crash with nav poinst rename dialog.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 5175d683d..fcd62caa5 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -1033,3 +1033,9 @@ void Viewport::validateSpeed() const
Game::instance()->setValidSpeed();
}
}
+
+void Viewport::clearPopup()
+{
+ if (mPopupMenu)
+ mPopupMenu->clear();
+}