From 09d33594563c6e5e1ddb1176e06d31261921cf62 Mon Sep 17 00:00:00 2001 From: Sir Walrus Date: Mon, 6 Jan 2025 13:38:56 +0100 Subject: [PATCH] Don't default patch select filter to null --- flips-gtk.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/flips-gtk.cpp b/flips-gtk.cpp index 35855c8..2fe895c 100644 --- a/flips-gtk.cpp +++ b/flips-gtk.cpp @@ -274,6 +274,7 @@ static GSList * SelectPatches(bool allowMulti, bool demandLocal) gtk_file_filter_add_pattern(filter, "*.ips"); gtk_file_filter_add_pattern(filter, "*.ups"); gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog), filter); + gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(dialog), filter); //apparently the file chooser takes ownership of the filter. would be nice to document that in gtk_file_chooser_set_filter... filter=gtk_file_filter_new();