mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Fix crash when re-assigning groups
This works around an issue where gtk sends two callbacks when a radio selection changes. First: unselect, then select new item. Previously: Two tracks, two groups. Select all tracks, assign to 2nd group. Crash. The first callback, "unselect" iterates over all tracks, removes them from any groups. Eventually all groups are unused and hence destroyed. The 2nd callback - "select" - now uses a just destroyed group.
This commit is contained in:
parent
9321f46c45
commit
3298653955
2 changed files with 8 additions and 5 deletions
|
|
@ -38,7 +38,7 @@ public:
|
|||
private:
|
||||
void add_item (ARDOUR::RouteGroup *, std::set<ARDOUR::RouteGroup*> const &, Gtk::RadioMenuItem::Group*);
|
||||
void new_group ();
|
||||
void set_group (ARDOUR::RouteGroup *);
|
||||
void set_group (Gtk::RadioMenuItem*, ARDOUR::RouteGroup *);
|
||||
void new_group_dialog_finished (int, RouteGroupDialog*);
|
||||
|
||||
Gtk::Menu* _menu;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue