file chooser: Fix a crash

The save_widgets_create function was not safe against
being called multiple times in save mode, calling
gtk_file_chooser_set_create_folders was a way to trigger
this crash.
This commit is contained in:
Matthias Clasen 2015-07-22 19:07:20 -04:00
parent 0076b943ad
commit 167734c153

View File

@ -2559,7 +2559,8 @@ save_widgets_create (GtkFileChooserWidget *impl)
GtkWidget *vbox;
GtkWidget *widget;
if (priv->save_widgets != NULL)
if (priv->save_widgets != NULL ||
(priv->external_entry && priv->location_entry == priv->external_entry))
return;
location_switch_to_path_bar (impl);