Fix New Profile Wizard title, and stop providing a default name

This commit is contained in:
Mark Watkins 2014-07-02 15:33:27 +10:00
parent f03ab85da5
commit 9331b4b9a2
2 changed files with 3 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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();