nm-connection-editor crashs after clicking Cancel in the "add new connection" dialog
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager-applet (Ubuntu) |
Fix Released
|
High
|
Alexander Sack | ||
Jaunty |
Won't Fix
|
High
|
Alexander Sack |
Bug Description
Binary package hint: network-manager
Steps to reproduce:
1. Open the Network Manager Connection Editor (nm-connection-
2. Select one of the following tabs: Wired, Wireless or DSL.
3. Click on Add.
4. In the dialog that appears, click on Cancel.
Expected behavior: the dialog closes and you come back to the nm-connection-
Actual behaviour: nm-connection-
The bug is totally reproducible in my fully updated Jaunty:
$ LC_ALL=C nm-connection-
(nm-connection-
** (nm-connection-
**
ERROR:nm-
Cancelado (core dumped)
Changed in network-manager-applet (Ubuntu Jaunty): | |
milestone: | later → none |
status: | Fix Committed → Won't Fix |
Changed in network-manager-applet (Ubuntu): | |
milestone: | later → none |
patch
=== modified file 'ChangeLog' editor/ nm-connection- list.c
--- a/ChangeLog 2009-04-13 13:21:42 +0000
+++ b/ChangeLog 2009-04-15 14:15:20 +0000
@@ -1,8 +1,14 @@
+2009-04-15 Alexander Sack <email address hidden>
+
+ * src/connection-
+ - (add_done_cb): prevent assertion crash when editor dialogs are
+ cancelled
+
2009-04-12 Dan Williams <email address hidden>
* Tag 0.7.1
2009-04-04 Dan Williams <email address hidden>
* Tag 0.7.1-rc4 (0.7.0.100)
=== modified file 'src/connection -editor/ nm-connection- list.c' n-editor/ nm-connection- list.c 2009-04-08 14:16:14 +0000 n-editor/ nm-connection- list.c 2009-04-15 14:12:47 +0000
_("Error initializing editor"),
"%s" , message); CANCEL: not_reached ();
--- a/src/connectio
+++ b/src/connectio
@@ -735,16 +735,18 @@ add_done_cb (NMConnectionEditor *editor,
message = error->message;
error_dialog (GTK_WINDOW (editor->window),
break;
case GTK_RESPONSE_OK:
add_connection (info->list, editor, connection, NULL, NULL);
break;
+ case GTK_RESPONSE_
+ break;
default:
g_assert_
break;
}
g_hash_ table_remove (info-> list->editors, connection);
}