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/popupmenu.cpp | |
parent | dff5c359fc0aec10a63556b7072d5e724ec0bf8e (diff) | |
download | manaplus-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/popupmenu.cpp')
-rw-r--r-- | src/gui/popupmenu.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 5a75cb71d..c6838079c 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -2204,6 +2204,15 @@ void PopupMenu::showPopup(const int x, const int y, gcn::ListModel *model) showPopup(x, y); } +void PopupMenu::clear() +{ + if (mDialog) + { + mDialog->close(); + mDialog = nullptr; + } +} + RenameListener::RenameListener() : gcn::ActionListener(), mMapItem(nullptr), |