]> git.lyx.org Git - features.git/commitdiff
Another fix for r30560.
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 25 Aug 2009 00:04:47 +0000 (00:04 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 25 Aug 2009 00:04:47 +0000 (00:04 +0000)
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

src/insets/InsetNote.cpp

index 862f77f88e69608617a5836a26c5067cf8ed72f9..89d789c04eb0d923f2625221b8a4230b1c9bc3f6 100644 (file)
@@ -175,6 +175,7 @@ void InsetNote::doDispatch(Cursor & cur, FuncRequest & cmd)
 
        case LFUN_INSET_MODIFY:
                string2params(to_utf8(cmd.argument()), params_);
+               setButtonLabel();
                break;
 
        case LFUN_INSET_DIALOG_UPDATE: