From 382566d5a915b95ccd84aaf221d11b08375e6be4 Mon Sep 17 00:00:00 2001 From: DL1YCF Date: Thu, 3 Jun 2021 16:43:49 +0200 Subject: [PATCH] setDuplex: set tx->dialog to NULL after it is destroyed --- radio_menu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/radio_menu.c b/radio_menu.c index 8145b7d..0cec40a 100644 --- a/radio_menu.c +++ b/radio_menu.c @@ -229,6 +229,7 @@ void setDuplex() { GtkWidget *content=gtk_dialog_get_content_area(GTK_DIALOG(transmitter->dialog)); gtk_container_remove(GTK_CONTAINER(content),transmitter->panel); gtk_widget_destroy(transmitter->dialog); + transmitter->dialog=NULL; reconfigure_transmitter(transmitter,display_width,rx_height); } g_idle_add(ext_vfo_update, NULL); -- 2.45.2