mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Do not attempt to show module info for category headers
This commit is contained in:
parent
42848c091f
commit
dfde45a01a
@ -2972,6 +2972,14 @@ void GuiDocument::updateModuleInfo()
|
||||
return;
|
||||
}
|
||||
QModelIndex const & idx = lv->selectionModel()->currentIndex();
|
||||
|
||||
if (!focus_on_selected
|
||||
&& modules_av_model_.itemFromIndex(idx)->hasChildren()) {
|
||||
// This is a category header
|
||||
modulesModule->infoML->document()->clear();
|
||||
return;
|
||||
}
|
||||
|
||||
string const modName = focus_on_selected ?
|
||||
modules_sel_model_.getIDString(idx.row())
|
||||
: fromqstr(modules_av_model_.data(idx, Qt::UserRole).toString());
|
||||
|
Loading…
Reference in New Issue
Block a user