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

This commit is contained in:
aldelaro5 2018-05-13 17:39:44 -04:00
parent 1fe92b8be7
commit 2c861e75f5
No known key found for this signature in database
GPG Key ID: 054DD3E6FF48DB71
1 changed files with 19 additions and 16 deletions

View File

@ -213,6 +213,8 @@ void HotkeyScheduler::Run()
IsHotkey(HK_TRIGGER_SYNC_BUTTON, true));
}
if (SConfig::GetInstance().bEnableDebugging)
{
if (IsHotkey(HK_STEP))
emit Step();
@ -236,6 +238,7 @@ void HotkeyScheduler::Run()
if (IsHotkey(HK_BP_ADD))
emit AddBreakpoint();
}
// TODO: HK_MBP_ADD