]> git.lyx.org Git - lyx.git/commitdiff
Fix regression introduced via #12819.
authorPavel Sanda <sanda@lyx.org>
Tue, 20 Aug 2024 07:32:03 +0000 (09:32 +0200)
committerPavel Sanda <sanda@lyx.org>
Tue, 20 Aug 2024 07:32:03 +0000 (09:32 +0200)
Cherry-pick e322ef153.

src/Buffer.cpp
status.24x

index b6fd8a3bc3fc91a11a5bf316f33f86c48a4cc7cc..1dc29d9568a1a442729bec3d4ceb52de15b0a64a 100644 (file)
@@ -5728,7 +5728,6 @@ void Buffer::Impl::fileExternallyModified(bool const exists)
                       "checksum unchanged: " << filename);
                return;
        }
-       lyx_clean = false;
        // If the file has been deleted, only mark the file as dirty since it is
        // pointless to prompt for reloading. If later a file is moved into this
        // location, then the externally modified warning will appear then.
@@ -5739,6 +5738,7 @@ void Buffer::Impl::fileExternallyModified(bool const exists)
        if (wa_ && wa_->unhide(owner_)) {
                wa_->updateTitles();
                if (!exists) {
+                       lyx_clean = false;
                        frontend::Alert::warning(
                                _("File deleted from disk"),
                                bformat(_("The file\n  %1$s\n"
index a6240f71f9c50e5c4658c2dfa7a01298ef9df92c..0263d457a5e18e1937ba9d468d39502f1523cce7 100644 (file)
@@ -46,6 +46,10 @@ What's new
 
 - Improve document output pane (bug 12902).
 
+- Fix regression which marks document modified in case of external
+  modification. Only file deletion will trigger the modification
+  flag now (see bug 12819).
+
 
 * DOCUMENTATION AND LOCALIZATION