diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 41ca20a3..ad84bea7 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -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() ) {