gnome-applets r11398 - branches/gnome-2-26/gweather



Author: callum
Date: Sat Mar 21 01:10:19 2009
New Revision: 11398
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=11398&view=rev

Log:
Quick fix for bug 554856 (crasher when searching the locations tree in gweather-applet). Doesn't solve the underlying problem.

Modified:
   branches/gnome-2-26/gweather/ChangeLog
   branches/gnome-2-26/gweather/gweather-pref.c

Modified: branches/gnome-2-26/gweather/gweather-pref.c
==============================================================================
--- branches/gnome-2-26/gweather/gweather-pref.c	(original)
+++ branches/gnome-2-26/gweather/gweather-pref.c	Sat Mar 21 01:10:19 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]