ProjectExplorer: Delete file even if failed to remove

... when user asks to delete from FS.

When a file is included using a wildcard, the project managers fail to
delete it.

Change-Id: I4f2bc6373c5ade8c5e06b580e41519c63f47891d
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2014-02-26 10:37:17 +02:00
committed by Orgad Shaneh
parent ea01867297
commit da3f3eecc5

View File

@@ -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);