mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
immediately bail out if current_folder is NULL. (#350988, lots of
2007-03-12 Kristian Rietveld <kris@gtk.org> * gtk/gtkfilechooserdefault.c (check_save_entry): immediately bail out if current_folder is NULL. (#350988, lots of reporters, modified patch by Jan Darmochwal). svn path=/trunk/; revision=17479
This commit is contained in:
parent
f479449ab7
commit
10d9b04e74
@ -1,3 +1,9 @@
|
||||
2007-03-12 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (check_save_entry): immediately
|
||||
bail out if current_folder is NULL. (#350988, lots of reporters,
|
||||
modified patch by Jan Darmochwal).
|
||||
|
||||
2007-03-10 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_search_dialog_hide): only
|
||||
|
@ -6630,6 +6630,16 @@ check_save_entry (GtkFileChooserDefault *impl,
|
||||
*is_empty_ret = FALSE;
|
||||
|
||||
current_folder = _gtk_file_chooser_entry_get_current_folder (chooser_entry);
|
||||
if (!current_folder)
|
||||
{
|
||||
*path_ret = NULL;
|
||||
*is_well_formed_ret = FALSE;
|
||||
*is_file_part_empty_ret = FALSE;
|
||||
*is_folder = FALSE;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
file_part = _gtk_file_chooser_entry_get_file_part (chooser_entry);
|
||||
|
||||
if (!file_part || file_part[0] == '\0')
|
||||
|
Loading…
Reference in New Issue
Block a user