Commit 479bcbd5 authored by Thomas Hartmann's avatar Thomas Hartmann

FileWidget: use QDir directly

parent c03f2b03
......@@ -131,7 +131,7 @@ void FileWidget::setupComboBox()
if (m_itemNode.isValid())
dir = QFileInfo(m_itemNode.modelNode().model()->fileUrl().toLocalFile()).absoluteDir();
else if (m_path.isValid())
dir = QFileInfo(m_path.toLocalFile()).absoluteDir();
dir = QDir(m_path.toLocalFile());
QStringList filterList = m_filter.split(' ');
......
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