[network-manager-applet/nma-0-9-8] editor: don't show an error dialog if the new connection dialog was canceled



commit 9de255df0e6074a871e51e08dfce94aa4edecc9e
Author: Dan Williams <dcbw redhat com>
Date:   Tue Jun 4 12:32:50 2013 -0500

    editor: don't show an error dialog if the new connection dialog was canceled

 src/connection-editor/new-connection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/new-connection.c b/src/connection-editor/new-connection.c
index e60cfda..5b306cf 100644
--- a/src/connection-editor/new-connection.c
+++ b/src/connection-editor/new-connection.c
@@ -375,7 +375,7 @@ new_connection_result (NMConnection *connection,
        parent_window = ncd->parent_window;
        g_slice_free (NewConnectionData, ncd);
 
-       if (!connection) {
+       if (!connection && !canceled) {
                nm_connection_editor_error (parent_window,
                                            _("Could not create new connection"),
                                            "%s",


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