From 83d8560490245e66021399e5e80aa373f984e0ee Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 23 Dec 2021 22:32:36 +0100 Subject: [PATCH] Fix bound-range dialog label Gtk::Label leaves scope, but must remain until the dialog is destroyed. --- gtk2_ardour/editor_ops.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 691d9928d7..10b88bea81 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -4157,11 +4157,10 @@ Editor::bounce_range_selection (bool replace, bool enable_processing) dialog.set_initial_text (bounce_name); if (!replace) { - Label label; - label.set_text (_("Bounced Range will appear in the Source list.")); + Label* label = manage (new Label (_("Bounced Range will appear in the Source list."))); dialog.get_vbox()->set_spacing (8); - dialog.get_vbox()->pack_start (label); - label.show(); + dialog.get_vbox()->pack_start (*label); + label->show(); } dialog.show ();