Android: Don't create a certificate if the alias field is empty.

We need to make sure that the user fills in the alias field before we
generate the certificate. If the certificate does not have an alias,
the package creation step will only create debug packages.

Task-number: QTCREATORBUG-10050
Change-Id: I247c7218a55ec86bdb1408c90f7f403b2ebbe2a4
Reviewed-by: BogDan Vatra <bogdan@kde.org>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Christian Strømme
2013-08-29 19:01:51 +02:00
committed by Christian Stromme
parent f0147ba19f
commit e90633a8fa

View File

@@ -137,8 +137,10 @@ void AndroidCreateKeystoreCertificate::on_buttonBox_accepted()
break;
}
if (!ui->aliasNameLineEdit->text().length())
if (!ui->aliasNameLineEdit->text().length()) {
ui->aliasNameLineEdit->setFocus();
return;
}
if (!ui->commonNameLineEdit->text().length())
ui->commonNameLineEdit->setFocus();