summaryrefslogtreecommitdiff
path: root/src/gui/setup_keyboard.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-15 20:41:05 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-28 18:36:10 +0200
commit12b2d53cb78db985da9d92230841be6570a7cfdc (patch)
tree268eb044762e8a320fb45a4c4df1993f3be1bb4f /src/gui/setup_keyboard.cpp
parent1012c6edeffc4a220c7151a7a1a55f12abf2fa9c (diff)
downloadmana-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.cpp3
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)