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:
parent
843f19788b
commit
6523454db5
2 changed files with 13 additions and 8 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue