From 404aa555b749519c887783c8b157f0615be41555 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Sun, 7 Sep 2014 16:24:04 -0400
Subject: [PATCH] *fixed regression where radio did not get selected upon
 redrawing (after dialog)

---
 pd/src/g_radio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pd/src/g_radio.c b/pd/src/g_radio.c
index a51c83263..87f1eb396 100644
--- a/pd/src/g_radio.c
+++ b/pd/src/g_radio.c
@@ -252,6 +252,8 @@ static void radio_dialog(t_radio *x, t_symbol *s, int argc, t_atom *argv)
             x->x_on_old = x->x_on;
         }
         iemgui_shouldvis(&x->x_gui, IEM_GUI_DRAW_MODE_NEW);
+        if (glist_isselected(x->x_gui.x_glist, (t_gobj *)x))
+            iemgui_select((t_gobj *)x, x->x_gui.x_glist, 1);
     }
     else
     {
-- 
GitLab