ResourceEditor: Use FilePath functionality more directly

Change-Id: Ic8a4ca1f221941b69f89acab063bde79c888023e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-08-18 17:07:10 +02:00
parent b9f4a0e7e4
commit 83ec50a374

View File

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