Skip to content

Commit

Permalink
oscplot: ensure channels dispalyed in save dialog are all inputs
Browse files Browse the repository at this point in the history
Signed-off-by: Cristina Suteu <[email protected]>
  • Loading branch information
cristina-suteu committed Oct 13, 2023
1 parent c65ab55 commit 938d5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oscplot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 938d5a0

Please sign in to comment.