Don't keep the dialog on the screen in the event of an error.
authorRoy Marples <roy@marples.name>
Thu, 2 Oct 2014 12:09:59 +0000 (12:09 +0000)
committerRoy Marples <roy@marples.name>
Thu, 2 Oct 2014 12:09:59 +0000 (12:09 +0000)
src/dhcpcd-gtk/wpa.c

index 31fcdc53de53745998bc6742750f917d7ff35b49..3e220207a9cece5229ec18efe693b7d1ec2d56c9 100644 (file)
@@ -104,7 +104,6 @@ wpa_configure(DHCPCD_WPA *wpa, DHCPCD_WI_SCAN *scan)
        gtk_container_add(GTK_CONTAINER(vbox), hbox);
 
        gtk_widget_show_all(wpa_dialog);
-again:
        result = gtk_dialog_run(GTK_DIALOG(wpa_dialog));
 
        retval = false;
@@ -133,10 +132,8 @@ again:
                        errt = strerror(errno);
                        break;
                }
-               if (!retval) {
+               if (!retval)
                        wpa_show_err(_("Error enabling network"), errt);
-                       goto again;
-               }
        }
        if (wpa_dialog) {
                gtk_widget_destroy(wpa_dialog);