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
This commit is contained in:
Alfredo Braunstein 2003-07-30 15:34:47 +00:00
parent c396168af0
commit bee8db371f
2 changed files with 7 additions and 2 deletions

View 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>

View 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();
}