# HG changeset patch # User Chris Cannam # Date 1168008405 0 # Node ID 0d2fb43b5ee568aaee0e67200842885caef0aec0 # Parent d82e332cb178e6bed37eb840994e34617be3f887 * 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 diff -r d82e332cb178 -r 0d2fb43b5ee5 document/SVFileReader.cpp --- 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); diff -r d82e332cb178 -r 0d2fb43b5ee5 main/main.cpp --- 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;