From d353bc521f7e380ca46fd1c97d5e71cc525bf54d Mon Sep 17 00:00:00 2001 From: Alexander Sack Date: Wed, 22 Apr 2009 18:14:16 +0200 Subject: [PATCH] * src/connection-editor/nm-connection-list.c - (add_connection_buttons): fix critical warning (LP: #285219) --- ChangeLog | 5 +++++ src/connection-editor/nm-connection-list.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index a7a2a5f..0949b35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-22 Alexander Sack + + * src/connection-editor/nm-connection-list.c + - (add_connection_buttons): fix critical warning (LP: #285219) + 2009-04-15 Alexander Sack * src/connection-editor/nm-connection-list.c diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c index d0128aa..5701a49 100644 --- a/src/connection-editor/nm-connection-list.c +++ b/src/connection-editor/nm-connection-list.c @@ -1727,11 +1727,13 @@ add_connection_buttons (NMConnectionList *self, g_free (name); if (button) { gboolean import_supported = FALSE; + GHashTable *plugins = vpn_get_plugins(NULL); info = action_info_new (self, treeview, GTK_WINDOW (self->dialog), button, self->system_action); g_signal_connect (button, "clicked", G_CALLBACK (import_vpn_cb), info); - g_hash_table_foreach (vpn_get_plugins (NULL), check_vpn_import_supported, &import_supported); + if (plugins) + g_hash_table_foreach (plugins, check_vpn_import_supported, &import_supported); gtk_widget_set_sensitive (button, import_supported); } -- 1.6.0.4