diff --git a/src/plugins/resourceeditor/resourcenode.cpp b/src/plugins/resourceeditor/resourcenode.cpp index 3a6f7993ab4..ee2ad1a6b01 100644 --- a/src/plugins/resourceeditor/resourcenode.cpp +++ b/src/plugins/resourceeditor/resourcenode.cpp @@ -251,8 +251,7 @@ ResourceTopLevelNode::ResourceTopLevelNode(const FilePath &filePath, setShowWhenEmpty(true); if (!filePath.isEmpty()) { - QFileInfo fi = filePath.toFileInfo(); - if (fi.isFile() && fi.isReadable()) { + if (filePath.isReadableFile()) { m_document = new ResourceFileWatcher(this); DocumentManager::addDocument(m_document); }