diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-07-15 20:41:05 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-09-28 18:36:10 +0200 |
commit | 12b2d53cb78db985da9d92230841be6570a7cfdc (patch) | |
tree | 268eb044762e8a320fb45a4c4df1993f3be1bb4f /src/gui/setup_keyboard.cpp | |
parent | 1012c6edeffc4a220c7151a7a1a55f12abf2fa9c (diff) | |
download | mana-12b2d53cb78db985da9d92230841be6570a7cfdc.tar.gz mana-12b2d53cb78db985da9d92230841be6570a7cfdc.tar.bz2 mana-12b2d53cb78db985da9d92230841be6570a7cfdc.tar.xz mana-12b2d53cb78db985da9d92230841be6570a7cfdc.zip |
The shortcuts are now refreshed when reassigning keys.
Diffstat (limited to 'src/gui/setup_keyboard.cpp')
-rw-r--r-- | src/gui/setup_keyboard.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/setup_keyboard.cpp b/src/gui/setup_keyboard.cpp index d3ee3937..b8ce3e89 100644 --- a/src/gui/setup_keyboard.cpp +++ b/src/gui/setup_keyboard.cpp @@ -22,6 +22,7 @@ #include "gui/setup_keyboard.h" +#include "game.h" #include "keyboardconfig.h" #include "gui/gui.h" @@ -190,6 +191,8 @@ void Setup_Keyboard::refreshAssignedKey(int index) } mKeyListModel->setElementAt(index, caption); + if (Game *game = Game::instance()) + game->updateWindowMenuCaptions(); } void Setup_Keyboard::newKeyCallback(int index) |