comparison 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
comparison
equal deleted inserted replaced
184:3a6fea0abf56 185:dd932fe5f3ff
76 QString iconName = container->getPropertyContainerIconName(); 76 QString iconName = container->getPropertyContainerIconName();
77 77
78 PropertyBox *box = new PropertyBox(container); 78 PropertyBox *box = new PropertyBox(container);
79 79
80 connect(box, SIGNAL(showLayer(bool)), this, SLOT(showLayer(bool))); 80 connect(box, SIGNAL(showLayer(bool)), this, SLOT(showLayer(bool)));
81
82 Layer *layer = dynamic_cast<Layer *>(container);
83 if (layer) {
84 box->layerVisibilityChanged(!layer->isLayerDormant(m_client));
85 }
81 86
82 QIcon icon(QString(":/icons/%1.png").arg(iconName)); 87 QIcon icon(QString(":/icons/%1.png").arg(iconName));
83 if (icon.isNull()) { 88 if (icon.isNull()) {
84 addTab(box, name); 89 addTab(box, name);
85 } else { 90 } else {