[gthumb] Fixed crash when no file properties view is registered



commit d74b7bbc2dc9ac48c5dd48d93485ffa90f80d72c
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 765169b..66ab62d 100644
--- a/gthumb/gth-sidebar.c
+++ b/gthumb/gth-sidebar.c
@@ -125,6 +125,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]