This commit is contained in:
zeromus 2014-03-05 01:22:04 +00:00
parent ebafa4b01d
commit 14ae65d672
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ void TASEDITOR_WINDOW::init()
toolInfo.uFlags = TTF_IDISHWND | TTF_SUBCLASS; toolInfo.uFlags = TTF_IDISHWND | TTF_SUBCLASS;
} }
// add hotkey mapping if needed // add hotkey mapping if needed
if (windowItems[i].hotkeyEmuCmd && !GetCommandKeyCombo((EMUCMD)windowItems[i].hotkeyEmuCmd).isEmpty()) if (windowItems[i].hotkeyEmuCmd != EMUCMD_NONE && !GetCommandKeyCombo((EMUCMD)windowItems[i].hotkeyEmuCmd).isEmpty())
{ {
windowItems[i].tooltipText[0] = 0; windowItems[i].tooltipText[0] = 0;
strcpy(windowItems[i].tooltipText, windowItems[i].tooltipTextBase); strcpy(windowItems[i].tooltipText, windowItems[i].tooltipTextBase);