From 8653ec7ae5641cf1e560ba79c8f9b15c8398e259 Mon Sep 17 00:00:00 2001 From: John Levon Date: Mon, 17 Feb 2003 18:39:07 +0000 Subject: [PATCH] bug 738 - revert fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@6190 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 4 ++++ src/lyxfunc.C | 3 +++ status.13x | 2 ++ 3 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 5cd78e5a8a..15fd67ccc1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-02-17 John Levon + + * lyxfunc.C: fix bug 738 - revert behaves sensibly + 2003-02-14 Jean-Marc Lasgouttes * buffer.C (makeLaTeXFile): fix counting of number of line feeds diff --git a/src/lyxfunc.C b/src/lyxfunc.C index bd5310b809..b6c74694a6 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -458,6 +458,9 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const case LFUN_VC_HISTORY: disable = !buf->lyxvc.inUse(); break; + case LFUN_MENURELOAD: + disable = buf->isUnnamed() || buf->isClean(); + break; case LFUN_BOOKMARK_GOTO: disable = !view()-> isSavedPosition(strToUnsignedInt(ev.argument)); diff --git a/status.13x b/status.13x index e6a6fd382c..44af498a90 100644 --- a/status.13x +++ b/status.13x @@ -76,3 +76,5 @@ What's new - enable the debug level to be set in lyx2lyx - fix strerror() build problem with some gcc/glibc versions [bug #874] + +- revert is now disabled for an unchanged or unsaved document [bug #783]