forked from qt-creator/qt-creator
ProjectExplorer: check file renaming result
Change-Id: I6872bc09f173e2af7a1ebc416d3d5ebcf9dea46a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -3446,8 +3446,9 @@ void ProjectExplorerPlugin::renameFile(Node *node, const QString &newFilePath)
|
||||
.arg(projectFileName)
|
||||
.arg(QDir::toNativeSeparators(oldFilePath))
|
||||
.arg(QDir::toNativeSeparators(newFilePath)));
|
||||
if (res == QMessageBox::Yes)
|
||||
FileUtils::renameFile(oldFilePath, newFilePath);
|
||||
if (res == QMessageBox::Yes) {
|
||||
QTC_CHECK(FileUtils::renameFile(oldFilePath, newFilePath));
|
||||
}
|
||||
|
||||
});
|
||||
return;
|
||||
|
Reference in New Issue
Block a user