diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-21 23:53:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-22 12:23:26 +0300 |
commit | 5dd673aa6abe2a070de45388a885d03fcc037d70 (patch) | |
tree | b5bf80507501e7b77c4dbdbfc39989ebd6209a20 /src/actionmanager.cpp | |
parent | 66bc17a4099842f9a54c13c183842f561d63963f (diff) | |
download | plus-5dd673aa6abe2a070de45388a885d03fcc037d70.tar.gz plus-5dd673aa6abe2a070de45388a885d03fcc037d70.tar.bz2 plus-5dd673aa6abe2a070de45388a885d03fcc037d70.tar.xz plus-5dd673aa6abe2a070de45388a885d03fcc037d70.zip |
allow open updater window from inside game.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index 0c2814d75..c751c9530 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -60,6 +60,7 @@ #include "gui/windows/setupwindow.h" #include "gui/windows/shopwindow.h" #include "gui/windows/shortcutwindow.h" +#include "gui/windows/updaterwindow.h" #include "gui/widgets/tabs/chattab.h" @@ -863,6 +864,15 @@ impHandler0(questsWindowShow) return true; } +impHandler0(updaterWindowShow) +{ + if (updaterWindow) + updaterWindow->deleteSelf(); + else + Game::createUpdaterWindow(); + return true; +} + impHandler0(changeMapMode) { if (viewport) |