diff options
author | Ville Nummela <ville.nummela@jolla.com> | 2019-06-18 14:39:38 +0300 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-06-25 11:53:58 +0000 |
commit | 63e418024225f104c7bc51110ac2b12dec4d23ba (patch) | |
tree | 216c7561f1dcc90ee0559340713dad6f6dcbced3 /src/plugins/resourceeditor/resourceeditorplugin.cpp | |
parent | 90ad2797eba573b275514ba487a787cf4036842b (diff) |
ProjectExplorer: Add special handling for removing files
... from a project which are pulled in via wildcards.
Such files cannot be removed from a project file, because they are
not listed verbatim. This kind of failure should not be reported to the
user if the file is also deleted, as the file list will have the correct
state after the next reparse.
Fixes: QTCREATORBUG-22586
Done-with: Christian Kandeler <christian.kandeler@qt.io>
Change-Id: I3dc66fe9a6594be7d0b86f46d830cd099ee49fd7
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorplugin.cpp')
-rw-r--r-- | src/plugins/resourceeditor/resourceeditorplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp index 7a5aedc434..1af724504b 100644 --- a/src/plugins/resourceeditor/resourceeditorplugin.cpp +++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp @@ -284,7 +284,7 @@ void ResourceEditorPlugin::removeFileContextMenu() QString path = rfn->filePath().toString(); FolderNode *parent = rfn->parentFolderNode(); QTC_ASSERT(parent, return); - if (!parent->removeFiles(QStringList() << path)) + if (parent->removeFiles(QStringList() << path) != RemovedFilesFromProject::Ok) QMessageBox::warning(Core::ICore::mainWindow(), tr("File Removal Failed"), tr("Removing file %1 from the project failed.").arg(path)); |