diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-02-02 22:15:55 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-02 22:15:55 +0200 |
commit | 4ead5c9f65ffbf1de9b0cb60cae06b116badbced (patch) | |
tree | bc94093b90e7b4d3168259b7404ae2f6236f3925 /src/gui/npcdialog.h | |
parent | 4b0caea6389ab789ff3ae3a267b9002f8a21e8c3 (diff) | |
download | plus-4ead5c9f65ffbf1de9b0cb60cae06b116badbced.tar.gz plus-4ead5c9f65ffbf1de9b0cb60cae06b116badbced.tar.bz2 plus-4ead5c9f65ffbf1de9b0cb60cae06b116badbced.tar.xz plus-4ead5c9f65ffbf1de9b0cb60cae06b116badbced.zip |
Close npc and other dialogs if reconnecting.
Also save extra layers if network error.
Diffstat (limited to 'src/gui/npcdialog.h')
-rw-r--r-- | src/gui/npcdialog.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h index eee4b32e2..c4a567c06 100644 --- a/src/gui/npcdialog.h +++ b/src/gui/npcdialog.h @@ -171,6 +171,11 @@ class NpcDialog : public Window, public gcn::ActionListener, */ static void closeAll(); + /** + * Closes all instances and destroy also net handler dialogs. + */ + static void destroyAll(); + private: typedef std::list<NpcDialog*> DialogList; static DialogList instances; |