summaryrefslogtreecommitdiffstats
path: root/gtk/src/audiohandler.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src/audiohandler.c')
-rw-r--r--gtk/src/audiohandler.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c
index 0d00a65a6..47009b70f 100644
--- a/gtk/src/audiohandler.c
+++ b/gtk/src/audiohandler.c
@@ -1315,6 +1315,20 @@ ghb_clear_audio_list_settings(GhbValue *settings)
}
void
+ghb_clear_audio_selection(GtkBuilder *builder)
+{
+ GtkTreeView *tv;
+ GtkTreeSelection *tsel;
+
+ g_debug("clear_audio_list_ui ()");
+ tv = GTK_TREE_VIEW(GHB_WIDGET(builder, "audio_list_view"));
+ // Clear tree selection so that updates are not triggered
+ // that cause a recursive attempt to clear the tree selection (crasher)
+ tsel = gtk_tree_view_get_selection(tv);
+ gtk_tree_selection_unselect_all(tsel);
+}
+
+void
ghb_clear_audio_list_ui(GtkBuilder *builder)
{
GtkTreeView *tv;