diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 57e51735fa6..55815c5d82f 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -3169,7 +3169,8 @@ void ProjectExplorerPluginPrivate::removeFile() tr("Could not remove file %1 from project %2.") .arg(QDir::toNativeSeparators(filePath)) .arg(folderNode->projectNode()->displayName())); - return; + if (!deleteFile) + return; } DocumentManager::expectFileChange(filePath);