diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 1f45b23a542..726420e0bf2 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -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;