diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-04-22 16:58:20 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-04-22 16:58:20 +0000 |
commit | 1a8bfa4a080b1c716462c5727524c4b36522e445 (patch) | |
tree | 8bf2e911b8bb098b250835b2238ae52d4484ce82 | |
parent | 55b1a3d1edcdbaecf5a6ff97e4b0fb6617eab630 (diff) |
refuse to accept Auto_Write state when loading automation list state from disk
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6968 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/automation_event.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/automation_event.cc b/libs/ardour/automation_event.cc index 19c8ff584e..f28149e3e6 100644 --- a/libs/ardour/automation_event.cc +++ b/libs/ardour/automation_event.cc @@ -1466,6 +1466,9 @@ AutomationList::set_state (const XMLNode& node) if ((prop = node.property (X_("state"))) != 0) { _state = string_to_auto_state (prop->value()); + if (_state == Auto_Write) { + _state = Auto_Off; + } } else { _state = Auto_Off; } |