network: Just dismiss forget dialog if response is not OK

If the dialog is deleted, for instance, we don't want to take that as
OK.

https://bugzilla.gnome.org/show_bug.cgi?id=709091
This commit is contained in:
Rui Matos 2013-09-30 14:25:21 +02:00
parent 1887411a3f
commit b68f7421c6

View file

@ -1370,7 +1370,7 @@ really_forget (GtkDialog *dialog, gint response, gpointer data)
gtk_widget_destroy (GTK_WIDGET (dialog));
if (response == GTK_RESPONSE_CANCEL)
if (response != GTK_RESPONSE_OK)
return;
device_wifi = NET_DEVICE_WIFI (g_object_get_data (G_OBJECT (forget), "net"));