mark session dirty when moving range markers or altering location lock style.
This commit is contained in:
parent
7b9784fff4
commit
1e397a83ad
@ -1874,6 +1874,17 @@ Session::location_added (Location *location)
|
||||
location->EndChanged.connect_same_thread (skip_update_connections, boost::bind (&Session::update_marks, this, location));
|
||||
location->Changed.connect_same_thread (skip_update_connections, boost::bind (&Session::update_marks, this, location));
|
||||
location->FlagsChanged.connect_same_thread (skip_update_connections, boost::bind (&Session::update_marks, this, location));
|
||||
location->PositionLockStyleChanged.connect_same_thread (skip_update_connections, boost::bind (&Session::update_marks, this, location));
|
||||
}
|
||||
|
||||
if (location->is_range_marker()) {
|
||||
/* listen for per-location signals that require us to do any * global updates for marks */
|
||||
|
||||
location->StartChanged.connect_same_thread (skip_update_connections, boost::bind (&Session::update_marks, this, location));
|
||||
location->EndChanged.connect_same_thread (skip_update_connections, boost::bind (&Session::update_marks, this, location));
|
||||
location->Changed.connect_same_thread (skip_update_connections, boost::bind (&Session::update_marks, this, location));
|
||||
location->FlagsChanged.connect_same_thread (skip_update_connections, boost::bind (&Session::update_marks, this, location));
|
||||
location->PositionLockStyleChanged.connect_same_thread (skip_update_connections, boost::bind (&Session::update_marks, this, location));
|
||||
}
|
||||
|
||||
if (location->is_skip()) {
|
||||
@ -1883,6 +1894,7 @@ Session::location_added (Location *location)
|
||||
location->EndChanged.connect_same_thread (skip_update_connections, boost::bind (&Session::update_skips, this, location, true));
|
||||
location->Changed.connect_same_thread (skip_update_connections, boost::bind (&Session::update_skips, this, location, true));
|
||||
location->FlagsChanged.connect_same_thread (skip_update_connections, boost::bind (&Session::update_skips, this, location, false));
|
||||
location->PositionLockStyleChanged.connect_same_thread (skip_update_connections, boost::bind (&Session::update_marks, this, location));
|
||||
|
||||
update_skips (location, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user