changeset 83:0d2fb43b5ee5

* 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 d82e332cb178
children 41c491657587
files document/SVFileReader.cpp main/main.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/document/SVFileReader.cpp	Fri Jan 05 12:59:51 2007 +0000
+++ b/document/SVFileReader.cpp	Fri Jan 05 14:46:45 2007 +0000
@@ -1086,7 +1086,7 @@
         }
         
         bool muted = (attributes.value("mute").trimmed() == "true");
-        if (ok) parameters->setPlayMuted(muted);
+        parameters->setPlayMuted(muted);
         
         float pan = attributes.value("pan").toFloat(&ok);
         if (ok) parameters->setPlayPan(pan);
--- a/main/main.cpp	Fri Jan 05 12:59:51 2007 +0000
+++ b/main/main.cpp	Fri Jan 05 14:46:45 2007 +0000
@@ -150,7 +150,7 @@
 
     for (QStringList::iterator i = args.begin(); i != args.end(); ++i) {
 
-        MainWindow::FileOpenStatus status = MainWindow::FileOpenSucceeded;
+        MainWindow::FileOpenStatus status = MainWindow::FileOpenFailed;
 
         if (i == args.begin()) continue;
         if (i->startsWith('-')) continue;