From: Alfredo Braunstein Date: Wed, 30 Jul 2003 15:34:47 +0000 (+0000) Subject: Fix to Bug 1232 (as discussed on bugzilla) X-Git-Tag: 1.6.10~16378 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bee8db371feea9052879a42bc5b9a3f2f82e372e;p=features.git Fix to Bug 1232 (as discussed on bugzilla) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7453 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index effd40ab3f..2b5a834442 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-07-30 Alfredo Braunstein + + * lyxfunc.C (dispatch): do not mark the buffer dirty if the action + is disabled (bug 1232) + 2003-07-30 Martin Vermeer * 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 diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 1669ff81bc..1ca0cdce07 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -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(); }