]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
setDuplex: set tx->dialog to NULL after it is destroyed
authorDL1YCF <dl1ycf@darc.de>
Thu, 3 Jun 2021 14:43:49 +0000 (16:43 +0200)
committerDL1YCF <dl1ycf@darc.de>
Thu, 3 Jun 2021 14:43:49 +0000 (16:43 +0200)
radio_menu.c

index 8145b7df28562d78aaaecf3318393ae2ede395b1..0cec40a06b0a5dc64444a0ddea06b73926ec9b52 100644 (file)
@@ -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);