1
0
mirror of https://gitlab.com/pholy/OSCAR-code.git synced 2025-04-07 11:40:42 +00:00

Rename Profile: error condition handling

This commit is contained in:
LoudSnorer 2023-12-02 17:58:03 -05:00
parent b2156d64d6
commit edeb699841

View File

@ -294,7 +294,8 @@ void NewProfile::on_nextButton_clicked()
exit(0);
} else {
QMessageBox::question(this, tr("Duplicate or Invalid User Name"), tr("Please Change User Name "), QMessageBox::Ok);
ui->stackedWidget->setCurrentIndex(1);
index=1;
ui->stackedWidget->setCurrentIndex(index);
ui->userNameEdit->setText(newProfileName);
}
} else {