diff --git a/src/plugins/qmldesigner/components/propertyeditor/fileresourcesmodel.cpp b/src/plugins/qmldesigner/components/propertyeditor/fileresourcesmodel.cpp index 4e8a390bfd79525ed7b59625ba017a9ee38ad368..d44bcfc3d3d4c40a6b48fab315a9cf9898bbb074 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/fileresourcesmodel.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/fileresourcesmodel.cpp @@ -123,7 +123,7 @@ void FileResourcesModel::openFileDialog() //If that one is not valid we try the path for the current file if (path.isEmpty() && !m_fileName.isEmpty()) - path = QFileInfo(modelPath + QStringLiteral("/") + m_fileName.toString()).absoluteDir().absolutePath(); + path = QFileInfo(modelPath + '/' + m_fileName.toString()).absolutePath(); //Next we try to fall back to the path any file browser was opened with