]> git.lyx.org Git - features.git/commitdiff
Fix to Bug 1232 (as discussed on bugzilla)
authorAlfredo Braunstein <abraunst@lyx.org>
Wed, 30 Jul 2003 15:34:47 +0000 (15:34 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Wed, 30 Jul 2003 15:34:47 +0000 (15:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7453 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/lyxfunc.C

index effd40ab3f857307f45845f30d0c3c9948ff18d2..2b5a8344424f080104b36d76a9a735e43d38185c 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-30  Alfredo Braunstein  <abraunst@libero.it>
+
+       * lyxfunc.C (dispatch): do not mark the buffer dirty if the action
+       is disabled (bug 1232)
+
 2003-07-30     Martin Vermeer  <martin.vermeer@hut.fi>
 
        * factory.C: limited 'arg' scope
@@ -14,7 +19,6 @@
        
        * lyx_main.C (LyX):
        * BufferView_pimpl.C (loadLyXFile): fix to bugs 1287 and 1297 + ws
-
        
 2003-07-29  Martin Vermeer  <martin.vermeer@hut.fi>
 
index 1669ff81bc6d9d54e45e6eb58de719e73b57baf5..1ca0cdce07b0926aa2752f540e3801858d1449fa 100644 (file)
@@ -1621,7 +1621,8 @@ exit_with_message:
                view()->fitCursor();
 
                // If we executed a mutating lfun, mark the buffer as dirty
-               if (!lyxaction.funcHasFlag(ev.action, LyXAction::NoBuffer)
+               if (!getStatus(ev).disabled()
+                   && !lyxaction.funcHasFlag(ev.action, LyXAction::NoBuffer)
                    && !lyxaction.funcHasFlag(ev.action, LyXAction::ReadOnly))
                        view()->buffer()->markDirty();
        }