[network-manager-applet/NMA_0_8_1] editor: ignore secrets errors from settings which don't exist yet (bgo #623744)



commit 4496fd381582cfd61a6c790b1e438d55006dc18e
Author: Dan Williams <dcbw redhat com>
Date:   Wed Jul 21 15:58:20 2010 -0700

    editor: ignore secrets errors from settings which don't exist yet (bgo #623744)

 src/connection-editor/ce-page.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/ce-page.c b/src/connection-editor/ce-page.c
index af4b69a..bcb90de 100644
--- a/src/connection-editor/ce-page.c
+++ b/src/connection-editor/ce-page.c
@@ -187,7 +187,8 @@ ce_page_complete_init (CEPage *self,
 	g_return_if_fail (self != NULL);
 	g_return_if_fail (CE_IS_PAGE (self));
 
-	if (error) {
+	/* Ignore missing settings errors */
+	if (error && !dbus_g_error_has_name (error, "org.freedesktop.NetworkManagerSettings.InvalidSetting")) {
 		emit_initialized (self, error);
 		return;
 	} else if (!setting_name || !secrets) {



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