Qt/debugger: only consider debugger hotkeys if debugging is enabled
This commit is contained in:
parent
1fe92b8be7
commit
2c861e75f5
|
@ -213,29 +213,32 @@ void HotkeyScheduler::Run()
|
||||||
IsHotkey(HK_TRIGGER_SYNC_BUTTON, true));
|
IsHotkey(HK_TRIGGER_SYNC_BUTTON, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsHotkey(HK_STEP))
|
if (SConfig::GetInstance().bEnableDebugging)
|
||||||
emit Step();
|
{
|
||||||
|
if (IsHotkey(HK_STEP))
|
||||||
|
emit Step();
|
||||||
|
|
||||||
if (IsHotkey(HK_STEP_OVER))
|
if (IsHotkey(HK_STEP_OVER))
|
||||||
emit StepOver();
|
emit StepOver();
|
||||||
|
|
||||||
if (IsHotkey(HK_STEP_OUT))
|
if (IsHotkey(HK_STEP_OUT))
|
||||||
emit StepOut();
|
emit StepOut();
|
||||||
|
|
||||||
if (IsHotkey(HK_SKIP))
|
if (IsHotkey(HK_SKIP))
|
||||||
emit Skip();
|
emit Skip();
|
||||||
|
|
||||||
if (IsHotkey(HK_SHOW_PC))
|
if (IsHotkey(HK_SHOW_PC))
|
||||||
emit ShowPC();
|
emit ShowPC();
|
||||||
|
|
||||||
if (IsHotkey(HK_SET_PC))
|
if (IsHotkey(HK_SET_PC))
|
||||||
emit Skip();
|
emit Skip();
|
||||||
|
|
||||||
if (IsHotkey(HK_BP_TOGGLE))
|
if (IsHotkey(HK_BP_TOGGLE))
|
||||||
emit ToggleBreakpoint();
|
emit ToggleBreakpoint();
|
||||||
|
|
||||||
if (IsHotkey(HK_BP_ADD))
|
if (IsHotkey(HK_BP_ADD))
|
||||||
emit AddBreakpoint();
|
emit AddBreakpoint();
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: HK_MBP_ADD
|
// TODO: HK_MBP_ADD
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue