From 94fc1dc745de6dcce5a536b5e0e73d282c449cbe Mon Sep 17 00:00:00 2001 From: VKamyshniy Date: Thu, 19 Feb 2015 22:04:33 +0200 Subject: [Summary] In Location::set_state - adding emitted FlagsChanged (if any flag changed). This is not a hot fix - it's for UNDO changed skipping state for SKIP markers. Paul has approved this change. --- libs/ardour/location.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/ardour/location.cc') diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index e890911225..1c08f8e2ae 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -645,8 +645,13 @@ Location::set_state (const XMLNode& node, int version) return -1; } + Flags old_flags (_flags); _flags = Flags (string_2_enum (prop->value(), _flags)); + if (old_flags != _flags) { + FlagsChanged (); + } + if ((prop = node.property ("locked")) != 0) { _locked = string_is_affirmative (prop->value()); } else { -- cgit v1.2.3