[network-manager-applet/menu-rework] editor: quiet useless warning (lp#285219)



commit 5fbd4b89902a642521ec61a1b6f98fc466e766cb
Author: Alexander Sack <asac ubuntu com>
Date:   Wed Sep 30 09:27:57 2009 -0700

    editor: quiet useless warning (lp#285219)

 src/connection-editor/nm-connection-list.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c
index 2867471..8d787b7 100644
--- a/src/connection-editor/nm-connection-list.c
+++ b/src/connection-editor/nm-connection-list.c
@@ -1277,11 +1277,14 @@ add_connection_buttons (NMConnectionList *self,
 	g_free (name);
 	if (button) {
 		gboolean import_supported = FALSE;
+		GHashTable *plugins;
 
 		info = action_info_new (self, treeview, GTK_WINDOW (self->dialog), button);
 		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);
+		plugins = vpn_get_plugins (NULL);
+		if (plugins)
+			g_hash_table_foreach (plugins, check_vpn_import_supported, &import_supported);
 		gtk_widget_set_sensitive (button, import_supported);
 	}
 



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