mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
Open backup files via file open dialog
Fix for bug #12266. Also: Option to open any files as is standard in other apps.
This commit is contained in:
parent
67c85f54c4
commit
c6c6576515
@ -2610,7 +2610,11 @@ void GuiView::openDocument(string const & fname)
|
||||
dlg.setButton1(qt_("D&ocuments"), toqstr(lyxrc.document_path));
|
||||
dlg.setButton2(qt_("&Examples"), toqstr(lyxrc.example_path));
|
||||
|
||||
QStringList const filter(qt_("LyX Documents (*.lyx)"));
|
||||
QStringList const filter({
|
||||
qt_("LyX Documents (*.lyx)"),
|
||||
qt_("LyX Document Backups (*.lyx~)"),
|
||||
qt_("All Files (*.*)")
|
||||
});
|
||||
FileDialog::Result result =
|
||||
dlg.open(toqstr(initpath), filter);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user