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:
parent
1887411a3f
commit
b68f7421c6
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue