Author: dcbw
Date: Tue Feb 12 00:19:11 2008
New Revision: 521
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=521&view=rev

Log:
2008-02-11  Dan Williams  <[EMAIL PROTECTED]>

        * editor/editor-app.c
                - (populate_model): don't crash on invalid networks, ignore 
them instead



Modified:
   branches/network-manager-applet-0-6/ChangeLog
   branches/network-manager-applet-0-6/editor/editor-app.c

Modified: branches/network-manager-applet-0-6/editor/editor-app.c
==============================================================================
--- branches/network-manager-applet-0-6/editor/editor-app.c     (original)
+++ branches/network-manager-applet-0-6/editor/editor-app.c     Tue Feb 12 
00:19:11 2008
@@ -446,15 +446,16 @@
 
                gconf_entry_dir = g_strdup(gconf_dirs->data);
                name_key = g_strdup_printf("%s/essid", gconf_entry_dir);
-               name = gconf_client_get_string(we_data->gconf_client, name_key, 
&err);
-
-               gtk_list_store_append (store, &iter);
-
-               gtk_list_store_set (store, &iter,
-                               WNTV_DISPLAY_COLUMN, name,
-                               WNTV_PIXBUF_COLUMN, pixbuf,
-                               WNTV_DATA_COLUMN, gconf_entry_dir,
-                               -1);
+               name = gconf_client_get_string (we_data->gconf_client, 
name_key, &err);
+               if (name && strlen (name)) {
+                       gtk_list_store_append (store, &iter);
+
+                       gtk_list_store_set (store, &iter,
+                                       WNTV_DISPLAY_COLUMN, name,
+                                       WNTV_PIXBUF_COLUMN, pixbuf,
+                                       WNTV_DATA_COLUMN, gconf_entry_dir,
+                                       -1);
+               }
 
                g_free(name_key);
 
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to