From: Abdelrazak Younes Date: Thu, 1 Feb 2007 13:39:20 +0000 (+0000) Subject: Partially fix bug 675, the graphics dialog still opens will disabled button... X-Git-Tag: 1.6.10~10950 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0a1a789c526cf842b01c93eb9dcfcc8bc39b3e63;p=lyx.git Partially fix bug 675, the graphics dialog still opens will disabled button... http://bugzilla.lyx.org/show_bug.cgi?id=675 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17005 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/insetcaption.C b/src/insets/insetcaption.C index 28ace2dc35..23882afa08 100644 --- a/src/insets/insetcaption.C +++ b/src/insets/insetcaption.C @@ -195,9 +195,18 @@ bool InsetCaption::getStatus(LCursor & cur, FuncRequest const & cmd, case LFUN_BREAK_PARAGRAPH_SKIP: case LFUN_PARAGRAPH_SPACING: case LFUN_PAGEBREAK_INSERT: + case LFUN_TABULAR_INSERT: status.enabled(false); return true; + case LFUN_INSET_INSERT: { + string const name = cmd.getArg(0); + if (name == "graphics" + || name == "include") { + status.enabled(false); + return true; + } + } default: return InsetText::getStatus(cur, cmd, status); }