Commit 34059cf2 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't assert that current_focus != NULL, just return FALSE.

2004-09-21  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
	Don't assert that current_focus != NULL, just return FALSE.
parent 594cc47d
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
Don't assert that current_focus != NULL, just return FALSE.
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.
......
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
Don't assert that current_focus != NULL, just return FALSE.
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.
......
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
Don't assert that current_focus != NULL, just return FALSE.
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.
......
2004-09-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_should_respond):
Don't assert that current_focus != NULL, just return FALSE.
* gtk/gtkpathbar.c (gtk_path_bar_size_request): Give the path
bar arrows some more space.
......
......@@ -4931,9 +4931,10 @@ gtk_file_chooser_default_should_respond (GtkFileChooserEmbed *chooser_embed)
g_assert (GTK_IS_WINDOW (toplevel));
current_focus = gtk_window_get_focus (GTK_WINDOW (toplevel));
g_assert (current_focus != NULL);
if (current_focus == impl->browse_files_tree_view)
if (current_focus == NULL)
return FALSE;
else if (current_focus == impl->browse_files_tree_view)
{
int num_selected;
gboolean all_files, all_folders;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment