[network-manager-applet] editor: small cleanup



commit f3e3c6b1592528426738b17364fa9e32fc6e0d92
Author: Dan Williams <dcbw redhat com>
Date:   Mon Sep 21 12:06:35 2009 -0700

    editor: small cleanup

 src/connection-editor/nm-connection-list.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c
index 4730784..8268bba 100644
--- a/src/connection-editor/nm-connection-list.c
+++ b/src/connection-editor/nm-connection-list.c
@@ -762,14 +762,13 @@ edit_done_cb (NMConnectionEditor *editor, gint response, GError *error, gpointer
 		}
 		break;
 	case GTK_RESPONSE_NONE:
+		/* Show an error dialog if the editor initialization failed */
+		if (error && error->message)
+			message = error->message;
+		error_dialog (GTK_WINDOW (editor->window), _("Error initializing editor"), "%s", message);
+		/* fall through */
 	case GTK_RESPONSE_CANCEL:
 	default:
-		if (response == GTK_RESPONSE_NONE) {
-			/* Show an error dialog if the editor initialization failed */
-			if (error && error->message)
-				message = error->message;
-			error_dialog (GTK_WINDOW (editor->window), _("Error initializing editor"), "%s", message);
-		}
 		g_hash_table_remove (info->list->editors, connection);
 		g_free (info);
 		break;



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