13
0

Fix bound-range dialog label

Gtk::Label leaves scope, but must remain until the dialog
is destroyed.
This commit is contained in:
Robin Gareus 2021-12-23 22:32:36 +01:00
parent 5406057190
commit 83d8560490
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -4157,11 +4157,10 @@ Editor::bounce_range_selection (bool replace, bool enable_processing)
dialog.set_initial_text (bounce_name); dialog.set_initial_text (bounce_name);
if (!replace) { if (!replace) {
Label label; Label* label = manage (new Label (_("Bounced Range will appear in the Source list.")));
label.set_text (_("Bounced Range will appear in the Source list."));
dialog.get_vbox()->set_spacing (8); dialog.get_vbox()->set_spacing (8);
dialog.get_vbox()->pack_start (label); dialog.get_vbox()->pack_start (*label);
label.show(); label->show();
} }
dialog.show (); dialog.show ();