1
0
Fork 0

DBG: correctly focus on the disassembly view on Initialize

This commit is contained in:
mrexodia 2016-10-23 14:12:10 +02:00
parent 522df15e2d
commit cf9c48b99f
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 1 additions and 2 deletions

View File

@ -419,8 +419,6 @@ void DebugUpdateGui(duint disasm_addr, bool stack)
void DebugUpdateGuiSetState(duint disasm_addr, bool stack, DBGSTATE state = paused)
{
GuiSetDebugState(state);
if(state == initialized)
GuiFocusView(GUI_DISASSEMBLY);
DebugUpdateGui(disasm_addr, stack);
}
@ -2395,6 +2393,7 @@ static void debugLoopFunction(void* lpParameter, bool attach)
//inform GUI we started without problems
GuiSetDebugState(initialized);
GuiFocusView(GUI_DISASSEMBLY);
GuiAddRecentFile(szFileName);
//set GUI title