Commit 18639ebe authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: fix for the filewidget

The combobox showing all available files did not work.
parent ee4700d9
......@@ -140,7 +140,7 @@ void FileWidget::setupComboBox()
QDir dir;
if (m_itemNode.isValid())
dir = QDir(m_itemNode.modelNode().model()->fileUrl().toLocalFile());
dir = QFileInfo(m_itemNode.modelNode().model()->fileUrl().toLocalFile()).dir();
else if (m_path.isValid())
dir = QDir(m_path.toLocalFile());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment