This commit is contained in:
Andrew nuark G 2021-01-10 18:59:53 +07:00
parent 6eceac01c2
commit 02766bd5d2
2 changed files with 10 additions and 27 deletions

View file

@ -44,6 +44,9 @@ void UserEditDialog::accept() {
case 2:
role = UserRole::SKIPPER;
break;
default:
QMessageBox::critical(this, "Error", "Role not selected");
return;
}
bool emptyTitle = ui->et_login->text().trimmed().isEmpty();
bool emptyPassword = ui->et_password->text().trimmed().isEmpty();