[gthumb/gthumb-2-14] Fixed crash when no file properties view is registered



commit de3bd7c3018a581e59177fb3a5d4f74d9a8d62e9
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Nov 4 17:27:30 2011 +0100

    Fixed crash when no file properties view is registered

 gthumb/gth-sidebar.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-sidebar.c b/gthumb/gth-sidebar.c
index 4eb487f..84c9b69 100644
--- a/gthumb/gth-sidebar.c
+++ b/gthumb/gth-sidebar.c
@@ -156,6 +156,9 @@ _gth_sidebar_add_property_views (GthSidebar *sidebar)
 	int     i;
 
 	children = gth_main_get_type_set ("file-properties");
+	if (children == NULL)
+		return;
+
 	for (i = 0; i < children->len; i++) {
 		GType      child_type;
 		GtkWidget *child;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]