commit 5ed10caec3bceeb3b71d9bfc210943e955ef6ec9
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).
(cherry picked from commit aba40a9ecf01fb0815ec371df4eefa2cf2eef8d3)
---
src/frontends/qt/GuiDocument.cpp | 2 +-
status.24x | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/frontends/qt/GuiDocument.cpp b/src/frontends/qt/GuiDocument.cpp
index 40588ff478..372dab3deb 100644
--- a/src/frontends/qt/GuiDocument.cpp
+++ b/src/frontends/qt/GuiDocument.cpp
@@ -1856,7 +1856,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;
diff --git a/status.24x b/status.24x
index ff9b3395c5..489f797a3f 100644
--- a/status.24x
+++ b/status.24x
@@ -50,6 +50,7 @@ What's new
* USER INTERFACE
+- Fix false warning when closing document settings with read-only document.
* INTERNALS
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs