Commit 8db91e82 authored by Vikas Pachdha's avatar Vikas Pachdha
Browse files

iOS: Skip simulator rename for empty input



Task-number: QTCREATORBUG-18629
Change-Id: I47ebb8b9046dda904e22612818f597e0ec7416db
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent 5294c68c
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment