commit aba40a9ecf01fb0815ec371df4eefa2cf2eef8d3
Author: Juergen Spitzmueller <[email protected]>
Date: Tue Jun 24 13:41:27 2025 +0200
Amend 6acc0759fc89
for the case of read-only documents (though I think the real
problem here being the restore state wrong in the first place).
This should obviously go to stable, too.
---
src/frontends/qt/GuiDocument.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp
index 441f8f470b..df718787eb 100644
--- a/src/frontends/qt/GuiDocument.cpp
+++ b/src/frontends/qt/GuiDocument.cpp
@@ -1893,7 +1893,7 @@ GuiDocument::GuiDocument(GuiView & lv)
void GuiDocument::checkOnClosing()
{
- if (!bc().policy().buttonStatus(ButtonPolicy::RESTORE))
+ if (buffer().isReadonly() ||
!bc().policy().buttonStatus(ButtonPolicy::RESTORE))
// nothing to do
return;
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs