diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2017-04-06 23:42:17 +0300 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-04-07 08:44:34 +0000 |
commit | b1180280d0fdcf9758df756e04e658ccd436a6b6 (patch) | |
tree | bfe5ae8635fbbe793bfae1e789ec32ab4e3f1f34 /src/plugins/projectexplorer/projectnodes.h | |
parent | d186d85bcf8bf16e1ca89419811ba707ccf988d2 (diff) |
ProjectExplorer: Fix infinite recursion
If some ProjectNode doesn't override supportsAction (like CMake), then the
fallback is FolderNode, which calls the root project node again...
Change-Id: Ie7a469d6aaaae38c8c2ff56e33fed27cf1477b49
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectnodes.h')
-rw-r--r-- | src/plugins/projectexplorer/projectnodes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/projectnodes.h b/src/plugins/projectexplorer/projectnodes.h index ac82e9b02c..d82c02f53c 100644 --- a/src/plugins/projectexplorer/projectnodes.h +++ b/src/plugins/projectexplorer/projectnodes.h @@ -291,6 +291,7 @@ public: bool deleteFiles(const QStringList &filePaths) override; bool canRenameFile(const QString &filePath, const QString &newFilePath) override; bool renameFile(const QString &filePath, const QString &newFilePath) override; + bool supportsAction(ProjectAction action, Node *node) const override; // by default returns false virtual bool deploysFolder(const QString &folder) const; |