forked from qt-creator/qt-creator
ResourceEditor: fix remove file
Change-Id: I02a1a5376b0ec0d8013f75dcdec6e4b8992f5f15 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user