From 052dc11269ed7375a6b61011684812766e06527d Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Fri, 30 Mar 2012 14:17:42 +0000 Subject: [PATCH] Make sure that we clear any previously selected files when (re)opening the import file selector in the shapefile GUI. git-svn-id: http://svn.osgeo.org/postgis/trunk@9583 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/shp2pgsql-gui.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/loader/shp2pgsql-gui.c b/loader/shp2pgsql-gui.c index 8b195693a..b0ac31db0 100644 --- a/loader/shp2pgsql-gui.c +++ b/loader/shp2pgsql-gui.c @@ -1302,6 +1302,9 @@ pgui_action_open_file_dialog(GtkWidget *widget, gpointer data) SHPLOADERCONFIG *loader_file_config; GSList *filename_list, *filename_item; gchar *filename; + + /* Make sure we deselect any files from the last time */ + gtk_file_chooser_unselect_all(GTK_FILE_CHOOSER(dialog_filechooser)); /* Run the dialog */ if (gtk_dialog_run(GTK_DIALOG(dialog_filechooser)) == GTK_RESPONSE_ACCEPT) -- 2.40.0