diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-21 00:42:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-21 02:50:12 +0300 |
commit | f3fcd24e8597feaabab67d0d354aef803958a465 (patch) | |
tree | 06b17d34696a7acca422a26352d022f31e51ce90 /src/gui/viewport.cpp | |
parent | dff5c359fc0aec10a63556b7072d5e724ec0bf8e (diff) | |
download | plus-f3fcd24e8597feaabab67d0d354aef803958a465.tar.gz plus-f3fcd24e8597feaabab67d0d354aef803958a465.tar.bz2 plus-f3fcd24e8597feaabab67d0d354aef803958a465.tar.xz plus-f3fcd24e8597feaabab67d0d354aef803958a465.zip |
Fix possible crash with nav poinst rename dialog.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 6 |
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(); +} |