forked from qt-creator/qt-creator
ResourceEditor: Use FilePath functionality more directly
Change-Id: Ic8a4ca1f221941b69f89acab063bde79c888023e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -251,8 +251,7 @@ ResourceTopLevelNode::ResourceTopLevelNode(const FilePath &filePath,
|
|||||||
setShowWhenEmpty(true);
|
setShowWhenEmpty(true);
|
||||||
|
|
||||||
if (!filePath.isEmpty()) {
|
if (!filePath.isEmpty()) {
|
||||||
QFileInfo fi = filePath.toFileInfo();
|
if (filePath.isReadableFile()) {
|
||||||
if (fi.isFile() && fi.isReadable()) {
|
|
||||||
m_document = new ResourceFileWatcher(this);
|
m_document = new ResourceFileWatcher(this);
|
||||||
DocumentManager::addDocument(m_document);
|
DocumentManager::addDocument(m_document);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user