# HG changeset patch # User Chris Cannam # Date 1168012150 0 # Node ID 8dd247c4c5f1c3a7f61547de2de638b223ce1224 # Parent dd932fe5f3ff73b6e38ca5f9496dadd846441e39 * Further fix for restoring layer visibility from session file * Better handling of error state in bzip file device to avoid spurious errors * Fix #1495001 deleted layers prevail in saved session file diff -r dd932fe5f3ff -r 8dd247c4c5f1 view/View.cpp --- a/view/View.cpp Fri Jan 05 14:46:45 2007 +0000 +++ b/view/View.cpp Fri Jan 05 15:49:10 2007 +0000 @@ -1556,7 +1556,10 @@ .arg(extraAttributes); for (size_t i = 0; i < m_layers.size(); ++i) { - s += m_layers[i]->toXmlString(indent + " "); + bool visible = !m_layers[i]->isLayerDormant(this); + s += m_layers[i]->toXmlString(indent + " ", + QString("visible=\"%1\"") + .arg(visible ? "true" : "false")); } s += indent + "\n";