forked from qt-creator/qt-creator
Utils: Remove uses of deprecated PathChooser::path()
There's filePath() nowadays. Change-Id: Ief06bd07a69a287d6a5ca3c41eb7069dba869d52 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -168,7 +168,7 @@ QString ComponentNameDialog::isValid() const
|
||||
if (!ui->pathEdit->isValid())
|
||||
return tr("Invalid path.");
|
||||
|
||||
if (QDir(ui->pathEdit->path()).exists(compName + ".qml"))
|
||||
if (ui->pathEdit->filePath().pathAppended(compName + ".qml").exists())
|
||||
return tr("Component already exists.");
|
||||
|
||||
return QString();
|
||||
|
Reference in New Issue
Block a user