Hello all, I'm new to this list, and was trying to fix #8703 (http://www.lyx.org/trac/ticket/8703) according to the manual at http://www.lyx.org/HowToUseGIT#toc7. The patch is attached.
What it does: keeps the New Shortcut window open in case of invalid key sequence or lyx function. Any comments? Regards, Martin
diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index 68f6aae..8686690 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -2805,8 +2805,6 @@ PrefShortcuts::PrefShortcuts(GuiPreferences * form) shortcut_bc_.setCancel(shortcut_->cancelPB); connect(shortcut_->okPB, SIGNAL(clicked()), - shortcut_, SLOT(accept())); - connect(shortcut_->okPB, SIGNAL(clicked()), this, SIGNAL(changed())); connect(shortcut_->cancelPB, SIGNAL(clicked()), shortcut_, SLOT(reject())); @@ -3180,6 +3178,8 @@ void PrefShortcuts::shortcutOkPressed() return; } + shortcut_->accept(); + // check to see if there's been any change FuncRequest oldBinding = system_bind_.getBinding(k); if (oldBinding.action() == LFUN_UNKNOWN_ACTION)