]> git.lyx.org Git - features.git/commitdiff
Update the button text of InsetInclude insets
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 26 Jun 2012 18:41:25 +0000 (20:41 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 26 Jun 2012 18:41:25 +0000 (20:41 +0200)
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.

src/insets/InsetInclude.cpp

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