diff options
author | Robin Gareus <robin@gareus.org> | 2017-07-28 20:11:55 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-28 20:11:55 +0200 |
commit | 964b88e651ac3324d85f735aad3faba226b582f6 (patch) | |
tree | 34dd26bf1cdde30238ed586c645db16336c86aeb /libs/ardour/automation_control.cc | |
parent | 7b7cc9ea6d9880905ab55aeb57f603e8a5024d9f (diff) |
Delete CoreSelection at session close
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r-- | libs/ardour/automation_control.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc index 9b7628a7ad..1c4525470b 100644 --- a/libs/ardour/automation_control.cc +++ b/libs/ardour/automation_control.cc @@ -70,7 +70,9 @@ AutomationControl::AutomationControl(ARDOUR::Session& s AutomationControl::~AutomationControl () { - _session.selection().remove_control_by_id (id()); + if (!_session.deletion_in_progress ()) { + _session.selection().remove_control_by_id (id()); + } DropReferences (); /* EMIT SIGNAL */ } |