ui: Fixed location pickers used root directory when empty

This commit is contained in:
Eberhard Graether
2017-12-11 20:29:51 +01:00
parent 5d3dd37ff5
commit b3ff2e3c5c
2 changed files with 2 additions and 2 deletions
@@ -78,7 +78,7 @@ void QtListItemWidget::handleButtonPress()
{
FilePath path(m_data->text().toStdString());
FilePath relativeRoot = m_list->getRelativeRootDirectory();
if (!relativeRoot.empty())
if (!path.empty() && !path.isAbsolute() && !relativeRoot.empty())
{
path = relativeRoot.concat(path);
}