Update the button text of InsetInclude insets

The button text of InsetInclude insets shows whether the child document is
included or excluded from compilation. Changing this for a child document
in the document settings does not get reflected on screen. This patch
updates the button text on the updateBuffer() call.
This commit is contained in:
Vincent van Ravesteijn 2012-06-26 20:41:25 +02:00
parent 9146acb9fd
commit dfb8dc91c1

View File

@ -1143,6 +1143,8 @@ void InsetInclude::updateCommand()
void InsetInclude::updateBuffer(ParIterator const & it, UpdateType utype) void InsetInclude::updateBuffer(ParIterator const & it, UpdateType utype)
{ {
button_.update(screenLabel(), true);
Buffer const * const childbuffer = getChildBuffer(); Buffer const * const childbuffer = getChildBuffer();
if (childbuffer) { if (childbuffer) {
childbuffer->updateBuffer(Buffer::UpdateChildOnly, utype); childbuffer->updateBuffer(Buffer::UpdateChildOnly, utype);