diff --git a/src/plugins/qmldesigner/components/propertyeditor/filewidget.cpp b/src/plugins/qmldesigner/components/propertyeditor/filewidget.cpp index 7bd2d1c276c2ffb610939ea3f8226b6a4ce685d8..f3ea8e28ab41edc02b05c1c9da36524a380c64a6 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/filewidget.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/filewidget.cpp @@ -136,7 +136,7 @@ void FileWidget::setupComboBox() QDir dir; if (m_itemNode.isValid()) - dir = QFileInfo(m_itemNode.modelNode().model()->fileUrl().toLocalFile()).absoluteDir(); + dir = QDir(m_itemNode.modelNode().model()->fileUrl().toLocalFile()); else if (m_path.isValid()) dir = QDir(m_path.toLocalFile());