disable save when document is clean (bug 2313)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13390 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2006-03-16 13:14:37 +00:00
parent 01dd14b592
commit 4836399ae8
3 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2006-03-16 John Spray <spray@lyx.org>
* lyxfunc.C (getStatus): disable LFUN_MENUWRITE when document is
clean (bug 2313)
2006-03-10 Jürgen Spitzmüller <j.spitzmueller@gmx.de> 2006-03-10 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* bufferparams.C (writeLaTeX): define \labelitemi with \def. Fixes LaTeX * bufferparams.C (writeLaTeX): define \labelitemi with \def. Fixes LaTeX

View File

@ -540,6 +540,11 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
break; break;
} }
case LFUN_MENUWRITE: {
enable = !view()->buffer()->isClean();
break;
}
// this one is difficult to get right. As a half-baked // this one is difficult to get right. As a half-baked
// solution, we consider only the first action of the sequence // solution, we consider only the first action of the sequence
case LFUN_SEQUENCE: { case LFUN_SEQUENCE: {
@ -559,7 +564,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
case LFUN_CANCEL: case LFUN_CANCEL:
case LFUN_META_FAKE: case LFUN_META_FAKE:
case LFUN_CLOSEBUFFER: case LFUN_CLOSEBUFFER:
case LFUN_MENUWRITE:
case LFUN_WRITEAS: case LFUN_WRITEAS:
case LFUN_UPDATE: case LFUN_UPDATE:
case LFUN_PREVIEW: case LFUN_PREVIEW:

View File

@ -37,9 +37,11 @@ What's new
- Convert line endings for external copy/paste on OS X (bug 1955). - 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). - Improve handling of the labeling environment in KOMA letters (bug 2246).