Permalink
Browse files

Qt/debugger: only consider debugger hotkeys if debugging is enabled

  • Loading branch information...
aldelaro5 committed May 13, 2018
1 parent 1fe92b8 commit 2c861e75f50b8d479d5e21665d1307c7eec7e5a9
Showing with 19 additions and 16 deletions.
  1. +19 −16 Source/Core/DolphinQt2/HotkeyScheduler.cpp
@@ -213,29 +213,32 @@ void HotkeyScheduler::Run()
IsHotkey(HK_TRIGGER_SYNC_BUTTON, true));
}
if (IsHotkey(HK_STEP))
emit Step();
if (SConfig::GetInstance().bEnableDebugging)
{
if (IsHotkey(HK_STEP))
emit Step();
if (IsHotkey(HK_STEP_OVER))
emit StepOver();
if (IsHotkey(HK_STEP_OVER))
emit StepOver();
if (IsHotkey(HK_STEP_OUT))
emit StepOut();
if (IsHotkey(HK_STEP_OUT))
emit StepOut();
if (IsHotkey(HK_SKIP))
emit Skip();
if (IsHotkey(HK_SKIP))
emit Skip();
if (IsHotkey(HK_SHOW_PC))
emit ShowPC();
if (IsHotkey(HK_SHOW_PC))
emit ShowPC();
if (IsHotkey(HK_SET_PC))
emit Skip();
if (IsHotkey(HK_SET_PC))
emit Skip();
if (IsHotkey(HK_BP_TOGGLE))
emit ToggleBreakpoint();
if (IsHotkey(HK_BP_TOGGLE))
emit ToggleBreakpoint();
if (IsHotkey(HK_BP_ADD))
emit AddBreakpoint();
if (IsHotkey(HK_BP_ADD))
emit AddBreakpoint();
}
// TODO: HK_MBP_ADD

0 comments on commit 2c861e7

Please sign in to comment.