diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-11 20:23:45 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-11 20:23:45 +0000 |
commit | 32fc1f8ed93be08b1c96c2ae7e9f3d910eef047d (patch) | |
tree | 6a1f65aceacb1bf2c90cc604e91d181e408bd001 | |
parent | 676542dcce03a1860fac8bb0638e5bb8ccb8ddce (diff) |
use string_is_affirmative(), not direct test for "yes"
git-svn-id: svn://localhost/ardour2/branches/3.0@9841 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/editor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 814ea66b3d..2dfe22e54f 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -2269,7 +2269,7 @@ Editor::set_state (const XMLNode& node, int /*version*/) } if ((prop = node.property ("stationary-playhead"))) { - bool yn = (prop->value() == "yes"); + bool yn = string_is_affirmative (prop->value()); set_stationary_playhead (yn); RefPtr<Action> act = ActionManager::get_action (X_("Editor"), X_("toggle-stationary-playhead")); if (act) { |