13
0

T: Fix Gtk-CRITICAL 'GTK_IS_ENTRY (entry)' failed

The Notebook need to be destroyed before the Gtk::Entry.
Destroying the Notebook, destroys every Tab one by one, which
triggers a SessionDialog::tab_page_switched callback.

This in turn calls SessionDialog::new_name_changed which
requires the `new_name_entry` to still be allocated.
This commit is contained in:
Robin Gareus 2024-05-24 21:16:39 +02:00
parent c6a67204bb
commit d60e9e02ea
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -93,8 +93,6 @@ private:
ArdourWidgets::ArdourButton existing_button;
ArdourWidgets::ArdourButton prefs_button;
Gtk::Notebook _tabs;
Gtk::ComboBoxText timebase_chooser;
bool new_button_pressed (GdkEventButton*);
@ -231,6 +229,8 @@ private:
bool info_scroller_update();
sigc::connection info_scroller_connection;
void updates_button_clicked ();
Gtk::Notebook _tabs;
};
#endif /* __gtk2_ardour_session_dialog_h__ */