ResourceEditor: fix remove file

Change-Id: I02a1a5376b0ec0d8013f75dcdec6e4b8992f5f15
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Nikita Baryshnikov
2017-09-20 19:13:50 +03:00
parent 89fa23a916
commit c3c9fbfc44

View File

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