diff --git a/src/ChangeLog b/src/ChangeLog index a143c46f20..f71f0eb012 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-03-16 John Spray + + * lyxfunc.C (getStatus): disable LFUN_MENUWRITE when document is + clean (bug 2313) + 2006-03-10 Jürgen Spitzmüller * bufferparams.C (writeLaTeX): define \labelitemi with \def. Fixes LaTeX diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 7a7882d85f..99a39f3dff 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -540,6 +540,11 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const break; } + case LFUN_MENUWRITE: { + enable = !view()->buffer()->isClean(); + break; + } + // this one is difficult to get right. As a half-baked // solution, we consider only the first action of the sequence case LFUN_SEQUENCE: { @@ -559,7 +564,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const case LFUN_CANCEL: case LFUN_META_FAKE: case LFUN_CLOSEBUFFER: - case LFUN_MENUWRITE: case LFUN_WRITEAS: case LFUN_UPDATE: case LFUN_PREVIEW: diff --git a/status.14x b/status.14x index 999d926f6f..d388c39880 100644 --- a/status.14x +++ b/status.14x @@ -37,9 +37,11 @@ What's new - Convert line endings for external copy/paste on OS X (bug 1955). -- fix jurabib error with Spanish documents (bug 2365). +- Disable saving when document is unchanged (bug 2313) -- First change is skipped in "Merge changes..." dialog (bug 2212). +- Fix jurabib error with Spanish documents (bug 2365). + +- Do not skip change in "Merge changes..." dialog (bug 2212). - Improve handling of the labeling environment in KOMA letters (bug 2246).