diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-28 23:33:33 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-17 16:31:50 -0600 |
commit | 1783305077a2a7be98203bb4ecf0edb66613daa5 (patch) | |
tree | e2c8ff74519e29778a466cc7343c2fc1ccc0de69 /libs/ardour/session.cc | |
parent | 53e743f4ae10885fe4f2e77d560acb0bdd9803fd (diff) |
provide mechanism to report on destructive tracks presence in a session
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 25fba565aa..767f3a424d 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -319,6 +319,7 @@ Session::Session (AudioEngine &eng, , _vca_manager (new VCAManager (*this)) , _selection (new CoreSelection (*this)) , _global_locate_pending (false) + , _had_destructive_tracks (false) { created_with = string_compose ("%1 %2", PROGRAM_NAME, revision); @@ -7005,3 +7006,15 @@ Session::maybe_update_tempo_from_midiclock_tempo (float bpm) } } } + +void +Session::set_had_destructive_tracks (bool yn) +{ + _had_destructive_tracks = yn; +} + +bool +Session::had_destructive_tracks() const +{ + return _had_destructive_tracks; +} |