]> git.lyx.org Git - features.git/commit
Fix assertion when canceling file dialog
authorEnrico Forestieri <forenr@lyx.org>
Sat, 2 Sep 2023 16:13:31 +0000 (18:13 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 2 Sep 2023 16:15:09 +0000 (18:15 +0200)
commit1cbcb303536800d889a45e8b1f286594987a6686
tree9212a43d2e31b6819c671f69a1e5e87183c0b571
parent7eecab590280892d1dab85298366d0033bbf0e39
Fix assertion when canceling file dialog

Without this patch, when a file has to be loaded (for example,
after "Document->Settings->Local Class" or "Insert->Graphics")
and the file dialog is canceled, both Qt5 and Qt6 assert:
ASSERT failure in QList::at: "index out of range"
src/frontends/qt/FileDialog.cpp