QTfrontend/hwform.cpp
changeset 12799 e6af1eb9e8ce
parent 12756 7cbf26454b1f
child 12811 de3cbbb09915
equal deleted inserted replaced
12798:fdb3730aa0e2 12799:e6af1eb9e8ce
  1524             if (!nickname.isEmpty()) {
  1524             if (!nickname.isEmpty()) {
  1525                 pwDialog->leNickname->setText(nickname);
  1525                 pwDialog->leNickname->setText(nickname);
  1526                 pwDialog->lePassword->setFocus();
  1526                 pwDialog->lePassword->setFocus();
  1527             }
  1527             }
  1528 
  1528 
  1529             //if dialog close, create an error message
  1529             //if dialog aborted, return failure
  1530             if (pwDialog->exec() != QDialog::Accepted) {
  1530             if (pwDialog->exec() != QDialog::Accepted) {
  1531                 delete pwDialog;
  1531                 delete pwDialog;
  1532                 GoBack();
  1532                 GoBack();
  1533                 break;
  1533                 return 1;
  1534             }
  1534             }
  1535 
  1535 
  1536             //set nick and pass from the dialog
  1536             //set nick and pass from the dialog
  1537             nickname = pwDialog->leNickname->text();
  1537             nickname = pwDialog->leNickname->text();
  1538             password = pwDialog->lePassword->text();
  1538             password = pwDialog->lePassword->text();