From 8ef2e4d990065e2d980073eb536dd40afc6f830b Mon Sep 17 00:00:00 2001 From: mrexodia Date: Tue, 8 Nov 2016 08:54:14 +0100 Subject: [PATCH] DBG+BRIDGE: resolved issue #1231 (gui not updated) --- src/bridge/bridgemain.cpp | 5 +---- src/dbg/commands/cmd-gui.cpp | 8 +++----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/bridge/bridgemain.cpp b/src/bridge/bridgemain.cpp index 73fa3da9..8a945409 100644 --- a/src/bridge/bridgemain.cpp +++ b/src/bridge/bridgemain.cpp @@ -1026,15 +1026,12 @@ BRIDGE_IMPEXP void GuiUpdateEnable(bool updateNow) { bDisableGUIUpdate = false; if(updateNow) - DbgCmdExecDirect("guiupdateenable"); - else - DbgCmdExecDirect("guiupdateenable 0"); + GuiUpdateAllViews(); } BRIDGE_IMPEXP void GuiUpdateDisable() { bDisableGUIUpdate = true; - DbgCmdExecDirect("guimsgdisable"); } BRIDGE_IMPEXP bool GuiIsUpdateDisabled() diff --git a/src/dbg/commands/cmd-gui.cpp b/src/dbg/commands/cmd-gui.cpp index 60e21b3b..fa4fd5b6 100644 --- a/src/dbg/commands/cmd-gui.cpp +++ b/src/dbg/commands/cmd-gui.cpp @@ -137,11 +137,9 @@ bool cbInstrEnableGuiUpdate(int argc, char* argv[]) if(GuiIsUpdateDisabled()) GuiUpdateEnable(false); duint value; - //default: update gui - if(argc > 1 && valfromstring(argv[1], &value) && value == 0) - return true; - duint cip = GetContextDataEx(hActiveThread, UE_CIP); - DebugUpdateGuiAsync(cip, false); + //argv[1]=="1" = update GUI + if(argc > 1 && valfromstring(argv[1], &value) && value == 1) + GuiUpdateAllViews(); return true; }