mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
fix race-condition/segfault at exit:
suppress route-group-reorder signal when session is being destroyed.
This commit is contained in:
parent
81d4d5371c
commit
13bb67a3bb
1 changed files with 2 additions and 2 deletions
|
|
@ -197,7 +197,7 @@ EditorRouteGroups::remove_selected ()
|
|||
Glib::RefPtr<TreeSelection> selection = _display.get_selection();
|
||||
TreeView::Selection::ListHandle_Path rows = selection->get_selected_rows ();
|
||||
|
||||
if (rows.empty()) {
|
||||
if (rows.empty() || _session->deletion_in_progress()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -582,7 +582,7 @@ EditorRouteGroups::run_new_group_dialog ()
|
|||
void
|
||||
EditorRouteGroups::row_deleted (Gtk::TreeModel::Path const &)
|
||||
{
|
||||
if (_in_rebuild) {
|
||||
if (_in_rebuild || !_session || _session->deletion_in_progress()) {
|
||||
/* We need to ignore this in cases where we're not doing a drag-and-drop
|
||||
re-order.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue