mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-29 10:37:39 +00:00
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 *vbox;
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
|
|
||||||
if (priv->save_widgets != NULL)
|
if (priv->save_widgets != NULL ||
|
||||||
|
(priv->external_entry && priv->location_entry == priv->external_entry))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
location_switch_to_path_bar (impl);
|
location_switch_to_path_bar (impl);
|
||||||
|
Loading…
Reference in New Issue
Block a user