mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Do not close LyXFiles dialog on double-clicking header
This commit is contained in:
parent
07e20fbb2f
commit
f3ee82fb87
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user