Only install main window global hotkey if it is actually enabled.

This commit is contained in:
Konstantin Isakov 2010-03-19 17:17:45 +03:00
parent 83115adf6e
commit 06e62ae682

View file

@ -1320,6 +1320,7 @@ void MainWindow::installHotKeys()
return; return;
} }
if ( cfg.preferences.enableMainWindowHotkey )
hotkeyWrapper->setGlobalKey( cfg.preferences.mainWindowHotkey.key1, hotkeyWrapper->setGlobalKey( cfg.preferences.mainWindowHotkey.key1,
cfg.preferences.mainWindowHotkey.key2, cfg.preferences.mainWindowHotkey.key2,
cfg.preferences.mainWindowHotkey.modifiers, cfg.preferences.mainWindowHotkey.modifiers,