use string_is_affirmative(), not direct test for "yes"
git-svn-id: svn://localhost/ardour2/branches/3.0@9841 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
676542dcce
commit
32fc1f8ed9
@ -2269,7 +2269,7 @@ Editor::set_state (const XMLNode& node, int /*version*/)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((prop = node.property ("stationary-playhead"))) {
|
if ((prop = node.property ("stationary-playhead"))) {
|
||||||
bool yn = (prop->value() == "yes");
|
bool yn = string_is_affirmative (prop->value());
|
||||||
set_stationary_playhead (yn);
|
set_stationary_playhead (yn);
|
||||||
RefPtr<Action> act = ActionManager::get_action (X_("Editor"), X_("toggle-stationary-playhead"));
|
RefPtr<Action> act = ActionManager::get_action (X_("Editor"), X_("toggle-stationary-playhead"));
|
||||||
if (act) {
|
if (act) {
|
||||||
|
Loading…
Reference in New Issue
Block a user