From 32fc1f8ed93be08b1c96c2ae7e9f3d910eef047d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 11 Jul 2011 20:23:45 +0000 Subject: [PATCH] use string_is_affirmative(), not direct test for "yes" git-svn-id: svn://localhost/ardour2/branches/3.0@9841 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 act = ActionManager::get_action (X_("Editor"), X_("toggle-stationary-playhead")); if (act) {