ProjectExplorer: check file renaming result

Change-Id: I6872bc09f173e2af7a1ebc416d3d5ebcf9dea46a
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Nikita Baryshnikov
2017-08-25 19:47:11 +03:00
parent 05485071b0
commit 903308e908

View File

@@ -3446,8 +3446,9 @@ void ProjectExplorerPlugin::renameFile(Node *node, const QString &newFilePath)
.arg(projectFileName) .arg(projectFileName)
.arg(QDir::toNativeSeparators(oldFilePath)) .arg(QDir::toNativeSeparators(oldFilePath))
.arg(QDir::toNativeSeparators(newFilePath))); .arg(QDir::toNativeSeparators(newFilePath)));
if (res == QMessageBox::Yes) if (res == QMessageBox::Yes) {
FileUtils::renameFile(oldFilePath, newFilePath); QTC_CHECK(FileUtils::renameFile(oldFilePath, newFilePath));
}
}); });
return; return;