KEYMAPPER: Put the gui keymap pushing/popping back in GuiManager::runLoop

This because theoretically the GUI could be run without a dialog.
This also fixes the situations where the GUI keymap gets popped more times than pushed.

Thanks sev
This commit is contained in:
Tarek Soliman 2011-10-31 22:38:05 -05:00
parent 843f19788b
commit 6523454db5
2 changed files with 13 additions and 8 deletions

View file

@ -86,10 +86,6 @@ void Dialog::open() {
}
setFocusWidget(w);
#ifdef ENABLE_KEYMAPPER
g_gui.initKeymap();
g_gui.pushKeymap();
#endif
}
void Dialog::close() {
@ -101,10 +97,6 @@ void Dialog::close() {
}
releaseFocus();
g_gui.closeTopDialog();
#ifdef ENABLE_KEYMAPPER
g_gui.popKeymap();
#endif
}
void Dialog::reflowLayout() {