]> git.lyx.org Git - lyx.git/commitdiff
Partially fix bug 675, the graphics dialog still opens will disabled button...
authorAbdelrazak Younes <younes@lyx.org>
Thu, 1 Feb 2007 13:39:20 +0000 (13:39 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 1 Feb 2007 13:39:20 +0000 (13:39 +0000)
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

src/insets/insetcaption.C

index 28ace2dc354a14052967df311b923daaf0949608..23882afa08e6826f5435bc78d5d4b8b81c3a36b8 100644 (file)
@@ -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);
        }