From 6523454db5c115bcaf1bc24380a444dfbdab43e3 Mon Sep 17 00:00:00 2001 From: Tarek Soliman Date: Mon, 31 Oct 2011 22:38:05 -0500 Subject: 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 --- gui/dialog.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'gui/dialog.cpp') diff --git a/gui/dialog.cpp b/gui/dialog.cpp index 9f18baec9e..0522b40b46 100644 --- a/gui/dialog.cpp +++ b/gui/dialog.cpp @@ -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() { -- cgit v1.2.3