diff options
author | Nikita Baryshnikov <nib952051@gmail.com> | 2017-09-20 19:13:50 +0300 |
---|---|---|
committer | Nikita Baryshnikov <nib952051@gmail.com> | 2017-09-21 08:42:05 +0000 |
commit | c3c9fbfc444c38450c3a81de5d0638b8a8eb86cb (patch) | |
tree | 32d79638f6e71ebe254e4e0d2e9c20757daab782 /src/plugins/resourceeditor/resourceeditorplugin.cpp | |
parent | 89fa23a916b55bd06b0b0756d6d874b4b03e5ba1 (diff) |
ResourceEditor: fix remove file
Change-Id: I02a1a5376b0ec0d8013f75dcdec6e4b8992f5f15
Reviewed-by: Tobias Hunger <tobias.hunger@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 07c532f4ef..bc28f94747 100644 --- a/src/plugins/resourceeditor/resourceeditorplugin.cpp +++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp @@ -283,7 +283,7 @@ void ResourceEditorPlugin::renameFileContextMenu() void ResourceEditorPlugin::removeFileContextMenu() { - auto rfn = dynamic_cast<ResourceFolderNode *>(ProjectTree::findCurrentNode()); + auto rfn = dynamic_cast<ResourceTopLevelNode *>(ProjectTree::findCurrentNode()); QTC_ASSERT(rfn, return); QString path = rfn->filePath().toString(); FolderNode *parent = rfn->parentFolderNode(); |