mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
Fix New Profile Wizard title, and stop providing a default name
This commit is contained in:
parent
f03ab85da5
commit
9331b4b9a2
@ -31,7 +31,7 @@ NewProfile::NewProfile(QWidget *parent) :
|
|||||||
ui(new Ui::NewProfile)
|
ui(new Ui::NewProfile)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->userNameEdit->setText(getUserName());
|
// ui->userNameEdit->setText(getUserName());
|
||||||
QLocale locale = QLocale::system();
|
QLocale locale = QLocale::system();
|
||||||
QString shortformat = locale.dateFormat(QLocale::ShortFormat);
|
QString shortformat = locale.dateFormat(QLocale::ShortFormat);
|
||||||
|
|
||||||
@ -157,7 +157,7 @@ void NewProfile::on_nextButton_clicked()
|
|||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
if (ui->userNameEdit->text().isEmpty()) {
|
if (ui->userNameEdit->text().isEmpty()) {
|
||||||
QMessageBox::information(this, STR_MessageBox_Error, tr("Empty Username"), QMessageBox::Ok);
|
QMessageBox::information(this, STR_MessageBox_Error, tr("Please provide a username for this profile"), QMessageBox::Ok);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,6 +280,7 @@ void ProfileSelect::on_newProfileButton_clicked()
|
|||||||
{
|
{
|
||||||
NewProfile newprof(this);
|
NewProfile newprof(this);
|
||||||
newprof.skipWelcomeScreen();
|
newprof.skipWelcomeScreen();
|
||||||
|
newprof.setWindowTitle(tr("Create new profile"));
|
||||||
|
|
||||||
if (newprof.exec() == NewProfile::Rejected) {
|
if (newprof.exec() == NewProfile::Rejected) {
|
||||||
// reject();
|
// reject();
|
||||||
|
Loading…
Reference in New Issue
Block a user