network-manager-applet r521 - in branches/network-manager-applet-0-6: . editor
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: network-manager-applet r521 - in branches/network-manager-applet-0-6: . editor
- Date: Tue, 12 Feb 2008 00:19:12 +0000 (GMT)
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 <dcbw redhat com>
* 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]