When setLayout() disappeared, also the call to setButtonLabel() disappeared. Now, when changing a Note into a Comment, the button label is no longer updated. This is because labelstring_ is not empty, so the line:
return labelstring_.empty() ? getLayout().labelstring() : labelstring_;
introduced in r30570 has no effect.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31225
a592a061-630c-0410-9148-
cb99ea01b6c8
case LFUN_INSET_MODIFY:
string2params(to_utf8(cmd.argument()), params_);
+ setButtonLabel();
break;
case LFUN_INSET_DIALOG_UPDATE: