mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
647ae51a46
commit
21d1f97cad
@ -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;*/
|
||||
|
Loading…
Reference in New Issue
Block a user