diff widgets/PropertyStack.cpp @ 185:dd932fe5f3ff

* Fix failure to reload play mute state correctly from session file * Ensure Show and Play buttons in layer property box are initialised with the correct state
author Chris Cannam
date Fri, 05 Jan 2007 14:46:45 +0000
parents 33929e0c3c6b
children 5b7472db612b
line wrap: on
line diff
--- a/widgets/PropertyStack.cpp	Wed Dec 13 15:53:23 2006 +0000
+++ b/widgets/PropertyStack.cpp	Fri Jan 05 14:46:45 2007 +0000
@@ -79,6 +79,11 @@
 
 	connect(box, SIGNAL(showLayer(bool)), this, SLOT(showLayer(bool)));
 
+        Layer *layer = dynamic_cast<Layer *>(container);
+        if (layer) {
+            box->layerVisibilityChanged(!layer->isLayerDormant(m_client));
+        }
+
 	QIcon icon(QString(":/icons/%1.png").arg(iconName));
 	if (icon.isNull()) {
 	    addTab(box, name);