Close RouteGroup dialog when route is deleted

This fixes a crash when trying to interact with the
RouteGroup dialog after deleting the group
This commit is contained in:
Robin Gareus 2024-07-24 23:21:12 +02:00
parent 06962c7728
commit 0db79b8023
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 9 additions and 1 deletions

View file

@ -29,6 +29,10 @@
#include "ardour_dialog.h"
#include "stripable_colorpicker.h"
namespace ARDOUR {
class RouteGroup;
}
class RouteGroupDialog : public ArdourDialog
{
public:
@ -59,7 +63,8 @@ private:
void gain_toggled ();
void update ();
bool unique_name (std::string const name) const;
PBD::ScopedConnection _group_connection;
};
#endif