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.
This commit is contained in:
Scott Kostyshak 2013-04-19 22:24:16 -04:00
parent 647ae51a46
commit 21d1f97cad

View File

@ -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;*/