iOS: Skip simulator rename for empty input

Task-number: QTCREATORBUG-18629
Change-Id: I47ebb8b9046dda904e22612818f597e0ec7416db
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Vikas Pachdha
2017-07-25 12:36:18 +02:00
parent 5294c68c98
commit 8db91e822b

View File

@@ -218,6 +218,8 @@ void IosSettingsWidget::onRename()
const SimulatorInfo &simInfo = simulatorInfoList.at(0);
const QString newName = QInputDialog::getText(this, tr("Rename %1").arg(simInfo.name),
tr("Enter new name:"));
if (newName.isEmpty())
return;
QPointer<SimulatorOperationDialog> statusDialog = new SimulatorOperationDialog(this);
statusDialog->setAttribute(Qt::WA_DeleteOnClose);