check ui_manager before accessing it. Fixes warnings on destruction.

2006-12-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockbook.c (gimp_dockbook_get_tab_widget): check
	ui_manager before accessing it. Fixes warnings on destruction.
This commit is contained in:
Sven Neumann 2006-12-12 13:01:53 +00:00 committed by Sven Neumann
parent 939b780530
commit 25dc6fe45d
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-12-12 Sven Neumann <sven@gimp.org>
* app/widgets/gimpdockbook.c (gimp_dockbook_get_tab_widget): check
ui_manager before accessing it. Fixes warnings on destruction.
2006-12-12 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell.c (gimp_display_shell_new):

View file

@ -407,7 +407,8 @@ gimp_dockbook_get_tab_widget (GimpDockbook *dockbook,
}
/* EEK */
if (GIMP_IS_IMAGE_DOCK (dockbook->dock))
if (GIMP_IS_IMAGE_DOCK (dockbook->dock) &&
GIMP_IMAGE_DOCK (dockbook->dock)->ui_manager != NULL)
{
const gchar *dialog_id;