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/stripable.cc | |
parent | 7b7cc9ea6d9880905ab55aeb57f603e8a5024d9f (diff) |
Delete CoreSelection at session close
Diffstat (limited to 'libs/ardour/stripable.cc')
-rw-r--r-- | libs/ardour/stripable.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/stripable.cc b/libs/ardour/stripable.cc index 9f5a5743e7..24167438c3 100644 --- a/libs/ardour/stripable.cc +++ b/libs/ardour/stripable.cc @@ -44,7 +44,9 @@ Stripable::Stripable (Session& s, string const & name, PresentationInfo const & Stripable::~Stripable () { - _session.selection().remove_stripable_by_id (id()); + if (!_session.deletion_in_progress ()) { + _session.selection().remove_stripable_by_id (id()); + } } void |