Don't g_assert_not_reached() if we are in any other state. Another code

2005-02-01  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c
	(browse_files_model_finished_loading_cb): Don't
	g_assert_not_reached() if we are in any other state.  Another code
	path may have triggered a folder reload.  Fixes #165556.
This commit is contained in:
Federico Mena Quintero
2005-02-02 00:52:14 +00:00
committed by Federico Mena Quintero
parent 49bfb352bb
commit 710acda91c
4 changed files with 27 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2005-02-01 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c
(browse_files_model_finished_loading_cb): Don't
g_assert_not_reached() if we are in any other state. Another code
path may have triggered a folder reload. Fixes #165556.
2005-02-01 Michael Natterer <mitch@gimp.org>
* configure.in: depend on stable pango-1.8, not unstable 1.7

View File

@@ -1,3 +1,10 @@
2005-02-01 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c
(browse_files_model_finished_loading_cb): Don't
g_assert_not_reached() if we are in any other state. Another code
path may have triggered a folder reload. Fixes #165556.
2005-02-01 Michael Natterer <mitch@gimp.org>
* configure.in: depend on stable pango-1.8, not unstable 1.7

View File

@@ -1,3 +1,10 @@
2005-02-01 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c
(browse_files_model_finished_loading_cb): Don't
g_assert_not_reached() if we are in any other state. Another code
path may have triggered a folder reload. Fixes #165556.
2005-02-01 Michael Natterer <mitch@gimp.org>
* configure.in: depend on stable pango-1.8, not unstable 1.7

View File

@@ -4612,7 +4612,12 @@ browse_files_model_finished_loading_cb (GtkFileSystemModel *model,
/* Nothing */
}
else
g_assert_not_reached ();
{
/* We can't g_assert_not_reached(), as something other than us may have
* initiated a folder reload. See #165556.
*/
return;
}
g_assert (impl->load_timeout_id == 0);