- only register hotkey when setup is active

- should fix bug 2684
See issue #2684 for more details.

svn path=/trunk/; revision=29662
This commit is contained in:
Johannes Anderwald 2007-10-18 21:09:45 +00:00
parent c44c89a6ab
commit 33aa43c80f

View file

@ -873,13 +873,14 @@ SASWindowProc(
/* Save the Session pointer */ /* Save the Session pointer */
SetWindowLongPtrW(hwndDlg, GWLP_USERDATA, (LONG_PTR)Session); SetWindowLongPtrW(hwndDlg, GWLP_USERDATA, (LONG_PTR)Session);
if (GetSetupType() == 0) if (GetSetupType())
return TRUE; return TRUE;
return RegisterHotKeys(Session, hwndDlg); return RegisterHotKeys(Session, hwndDlg);
} }
case WM_DESTROY: case WM_DESTROY:
{ {
UnregisterHotKeys(Session, hwndDlg); if (!GetSetupType())
UnregisterHotKeys(Session, hwndDlg);
return TRUE; return TRUE;
} }
case WM_SETTINGCHANGE: case WM_SETTINGCHANGE: