Do not close LyXFiles dialog on double-clicking header

This commit is contained in:
Juergen Spitzmueller 2019-03-20 12:37:55 +01:00
parent 07e20fbb2f
commit f3ee82fb87

View File

@ -233,8 +233,12 @@ void GuiLyXFiles::on_languageCO_activated(int)
}
void GuiLyXFiles::on_filesLW_itemDoubleClicked(QTreeWidgetItem *, int)
void GuiLyXFiles::on_filesLW_itemDoubleClicked(QTreeWidgetItem * item, int)
{
if (!item->data(0, Qt::UserRole).toString().endsWith(getSuffix()))
// not a file (probably a header)
return;
applyView();
dispatchParams();
close();