From 21d1f97cad7efb5b76ebd515a4987d696900fb8a Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Fri, 19 Apr 2013 22:24:16 -0400 Subject: [PATCH] GuiRef: do not insert a category as a ref Before, if a user had "Group" checked in GuiRef and double-clicked on a category, that category would be inserted as a (broken) reference. Now, when a category is double-clicked, nothing happens. --- src/frontends/qt4/GuiRef.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp index 15e6583623..d3f68d5ed9 100644 --- a/src/frontends/qt4/GuiRef.cpp +++ b/src/frontends/qt4/GuiRef.cpp @@ -162,6 +162,11 @@ void GuiRef::refSelected(QTreeWidgetItem * sel) if (isBufferReadonly()) return; + if (sel->childCount()) { + sel->setExpanded(false); + return; + } + /* int const cur_item = refsTW->currentRow(); bool const cur_item_selected = cur_item >= 0 ? refsLB->isSelected(cur_item) : false;*/ -- 2.39.5