gnome-applets r11399 - trunk/gweather



Author: callum
Date: Sat Mar 21 02:12:11 2009
New Revision: 11399
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=11399&view=rev

Log:
Fix for bug 554856 (crasher when searching the locations tree in gweather-applet).

Modified:
   trunk/gweather/ChangeLog
   trunk/gweather/gweather-pref.c

Modified: trunk/gweather/gweather-pref.c
==============================================================================
--- trunk/gweather/gweather-pref.c	(original)
+++ trunk/gweather/gweather-pref.c	Sat Mar 21 02:12:11 2009
@@ -710,6 +710,8 @@
 	tree = GTK_TREE_VIEW (pref->priv->tree);
 	model = gtk_tree_view_get_model (tree);
 
+	g_return_if_fail (model != NULL);
+
 	selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree));
 	gtk_tree_model_get_iter_first (model, &iter);
 



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