From: John Melton G0ORX <john.d.melton@googlemail.com>
Date: Fri, 20 Aug 2021 07:58:17 +0000 (+0100)
Subject: Fix selection on same action_dialod button loosing red background
X-Git-Url: https://git.rkrishnan.org/components/module-simplejson._speedups.html?a=commitdiff_plain;h=97318547cdedcb9afc66bf0a41fe008155a404fe;p=pihpsdr.git

Fix selection on same action_dialod button loosing red background
---

diff --git a/action_dialog.c b/action_dialog.c
index f60063d..0e4cd48 100644
--- a/action_dialog.c
+++ b/action_dialog.c
@@ -18,7 +18,7 @@ static int action;
 static void action_select_cb(GtkWidget *widget,gpointer data) {
   CHOICE *choice=(CHOICE *)data;
   g_signal_handler_block(G_OBJECT(previous_button),previous_signal_id);
-  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(previous_button),FALSE);
+  gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(previous_button),widget==previous_button);
   g_signal_handler_unblock(G_OBJECT(previous_button),previous_signal_id);
   previous_button=widget;
   previous_signal_id=choice->signal_id;