From 938d5a0339d5adfd03e63d44277cdcadd297b3ad Mon Sep 17 00:00:00 2001 From: Cristina Suteu Date: Fri, 13 Oct 2023 15:10:51 +0300 Subject: [PATCH] oscplot: ensure channels dispalyed in save dialog are all inputs Signed-off-by: Cristina Suteu --- oscplot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscplot.c b/oscplot.c index c246bbc1..b8813219 100644 --- a/oscplot.c +++ b/oscplot.c @@ -4504,7 +4504,7 @@ static void copy_channel_state_to_selection_channel(GtkTreeModel *model, for (node = ch_checkbtns; node; node = g_list_next(node)) { btn = (GtkToggleButton *)node->data; g_object_get(btn, "label", &btn_label, NULL); - if (!strcmp(ch_name, btn_label)) { + if (!strcmp(ch_name, btn_label) && !iio_channel_is_output(chn)) { gtk_toggle_button_set_active(btn, active_state); g_free(btn_label); break;