From edeb6998410b991f016a75172d66e055da756ece Mon Sep 17 00:00:00 2001 From: LoudSnorer Date: Sat, 2 Dec 2023 17:58:03 -0500 Subject: [PATCH] Rename Profile: error condition handling --- oscar/newprofile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oscar/newprofile.cpp b/oscar/newprofile.cpp index 0ceacff2..e83751dc 100644 --- a/oscar/newprofile.cpp +++ b/oscar/newprofile.cpp @@ -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 {