QML/JS Editor: Fix UI text

Task-number: QTCREATORBUG-25915
Change-Id: I96da82dee989cc1833e1219f33cbee072df19f83
Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
Leena Miettinen
2021-07-02 15:01:25 +02:00
parent 22a87fdd95
commit 50f9180cd2

View File

@@ -163,13 +163,13 @@ QString ComponentNameDialog::isValid() const
QString compName = ui->componentNameEdit->text(); QString compName = ui->componentNameEdit->text();
if (compName.isEmpty() || !compName[0].isUpper()) if (compName.isEmpty() || !compName[0].isUpper())
return tr("Invalid component name"); return tr("Invalid component name.");
if (!ui->pathEdit->isValid()) if (!ui->pathEdit->isValid())
return tr("Invalid path"); return tr("Invalid path.");
if (QDir(ui->pathEdit->path()).exists(compName + u".qml")) if (QDir(ui->pathEdit->path()).exists(compName + u".qml"))
return tr("Component already exists"); return tr("Component already exists.");
return QString(); return QString();
} }