diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-02 15:31:39 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-02 15:31:39 +0000 |
commit | 03f6001f4a47d7095f148aa193042c9d0656bc56 (patch) | |
tree | bdbc9f2a9a954c190f61e22006629ff8e86cd361 /libs/ardour/redirect.cc | |
parent | 9bddd37ea2dfab5a5eca6fdf03696e1dbae53e1d (diff) |
replace all instances of prop->value() == "yes" with string_is_affirmative (prop->value()) to avoid XML property SNAFUs
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5720 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/redirect.cc')
-rw-r--r-- | libs/ardour/redirect.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/redirect.cc b/libs/ardour/redirect.cc index 5f99c742ad..6cfd2e97c6 100644 --- a/libs/ardour/redirect.cc +++ b/libs/ardour/redirect.cc @@ -278,7 +278,7 @@ Redirect::set_state (const XMLNode& node) return -1; } - if (_active != (prop->value() == "yes")) { + if (_active != string_is_affirmative (prop->value())) { if (!(_session.state_of_the_state() & Session::Loading) || !Session::get_disable_all_loaded_plugins()) { _active = !_active; |