diff widgets/PropertyStack.cpp @ 298:226cb289bdf4

* Layer tree view updating when visibility / audibility changed (and layers updating when they are changed in view) -- still some problems when a model is loaded while the tree is visible * FFTW_MEASURE throughout -- it does turn out to make an appreciable difference sometimes
author Chris Cannam
date Thu, 16 Aug 2007 16:47:07 +0000
parents 4ca7562dd246
children 25e72328a897 0895517bb2d1
line wrap: on
line diff
--- a/widgets/PropertyStack.cpp	Tue Aug 14 19:37:10 2007 +0000
+++ b/widgets/PropertyStack.cpp	Thu Aug 16 16:47:07 2007 +0000
@@ -182,9 +182,14 @@
 void
 PropertyStack::propertyContainerPropertyChanged(PropertyContainer *pc)
 {
+    Layer *layer = dynamic_cast<Layer *>(pc);
     for (unsigned int i = 0; i < m_boxes.size(); ++i) {
 	if (pc == m_boxes[i]->getContainer()) {
 	    m_boxes[i]->propertyContainerPropertyChanged(pc);
+            if (layer) {
+                m_boxes[i]->layerVisibilityChanged
+                    (!layer->isLayerDormant(m_client));
+            }
 	}
     }
 }