changeset 186:8dd247c4c5f1

* 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
author Chris Cannam
date Fri, 05 Jan 2007 15:49:10 +0000
parents dd932fe5f3ff
children e7cf6044c2a0
files view/View.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 + "</view>\n";