Commit f3e3c6b1 authored by Dan Williams's avatar Dan Williams
Browse files

editor: small cleanup

parent 0a5715bc
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment