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,10 +1320,11 @@ void MainWindow::installHotKeys()
return;
}
hotkeyWrapper->setGlobalKey( cfg.preferences.mainWindowHotkey.key1,
cfg.preferences.mainWindowHotkey.key2,
cfg.preferences.mainWindowHotkey.modifiers,
0 );
if ( cfg.preferences.enableMainWindowHotkey )
hotkeyWrapper->setGlobalKey( cfg.preferences.mainWindowHotkey.key1,
cfg.preferences.mainWindowHotkey.key2,
cfg.preferences.mainWindowHotkey.modifiers,
0 );
if ( cfg.preferences.enableClipboardHotkey && scanPopup.get() )
{