]> git.lyx.org Git - lyx.git/commitdiff
InsetBox:
authorAbdelrazak Younes <younes@lyx.org>
Tue, 16 Feb 2010 12:55:05 +0000 (12:55 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 16 Feb 2010 12:55:05 +0000 (12:55 +0000)
* update the button label when a parameter is changed.
* Get rid of unused LFUN_INSET_DIALOG_UPDATE dispatch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33486 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBox.cpp

index fe4f44b2ccc00bb4eee051d482218e5014eeb568..769a2aeff140d41937f14678d7ed6f146a9651d6 100644 (file)
@@ -201,13 +201,10 @@ void InsetBox::doDispatch(Cursor & cur, FuncRequest & cmd)
                        params_.type = cmd.getArg(1);
                else
                        string2params(to_utf8(cmd.argument()), params_);
+               setButtonLabel();
                break;
        }
 
-       case LFUN_INSET_DIALOG_UPDATE:
-               cur.bv().updateDialog("box", params2string(params_));
-               break;
-
        default:
                InsetCollapsable::doDispatch(cur, cmd);
                break;