forked from AuroraMiddleware/gtk
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:
parent
0076b943ad
commit
167734c153
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user