]> git.lyx.org Git - features.git/commit
Fix SIGSEGV when introducing a new shortcut (#9869)
authorGuillaume Munch <gm@lyx.org>
Mon, 22 Feb 2016 00:36:33 +0000 (00:36 +0000)
committerGuillaume Munch <gm@lyx.org>
Tue, 23 Feb 2016 22:08:25 +0000 (22:08 +0000)
commit20a9c7a38184c10b95ed0fca7dfc6728425ea418
tree013576e51ad7caa80021a9ffe47e08cbaa51e67b
parent3c2d3caf278bf8b0c708845aec1ec8f00424392e
Fix SIGSEGV when introducing a new shortcut (#9869)

removeShortcut() restores default settings, therefore was used incorrectly. I
introduce deactivateShortcuts() which only removes assignments.

Clean up a bit the lack of view / model distinction (getting rid of the crashing
code at the same time).

Repair inconsistency of the selection in the "modify" case. (regression at
717d19d3c)

Make the test for existing bindings a bit more robust. (Not perfect yet.)

Focus on the item that has just been added/modified. (cosmetic)
src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/GuiPrefs.h