QTfrontend/hwform.cpp
changeset 12804 e6af1eb9e8ce
parent 12761 7cbf26454b1f
child 12816 de3cbbb09915
--- a/QTfrontend/hwform.cpp	Sun Oct 29 19:06:02 2017 +0100
+++ b/QTfrontend/hwform.cpp	Sun Oct 29 19:56:35 2017 +0100
@@ -1526,11 +1526,11 @@
                 pwDialog->lePassword->setFocus();
             }
 
-            //if dialog close, create an error message
+            //if dialog aborted, return failure
             if (pwDialog->exec() != QDialog::Accepted) {
                 delete pwDialog;
                 GoBack();
-                break;
+                return 1;
             }
 
             //set nick and pass from the dialog