]> git.lyx.org Git - features.git/commitdiff
To reduce confusion, stop displaying UserExtraUnbind items in the shortcut customizat...
authorBo Peng <bpeng@lyx.org>
Tue, 30 Oct 2007 15:25:30 +0000 (15:25 +0000)
committerBo Peng <bpeng@lyx.org>
Tue, 30 Oct 2007 15:25:30 +0000 (15:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21290 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiPrefs.cpp

index f1eebfd5631488e7f90efe7596ab8fef48e57b98..07610fac39becee3e4b81e4f2d379e856d107624 100644 (file)
@@ -1891,8 +1891,12 @@ QTreeWidgetItem * PrefShortcuts::insertShortcutItem(FuncRequest const & lfun,
                                break;
                        }
                // if not found, this unbind item is UserExtraUnbind
-               if (!newItem)
+               // Such an item is not displayed to avoid confusion (what is 
+               // unmatched removed?).
+               if (!newItem) {
                        item_tag = UserExtraUnbind;
+                       return NULL;
+               }
        }
        if (!newItem) {
                switch(lyxaction.getActionType(action)) {