src: Fixed issues with relative paths

This commit is contained in:
Eberhard Graether
2017-02-13 22:45:59 +01:00
parent 1d133492ed
commit be82e2a24e
3 changed files with 17 additions and 0 deletions
@@ -270,12 +270,17 @@ void QtDirectoryListBox::setStringList(const std::vector<std::string>& list)
{
clear();
FilePath root = m_relativeRootDirectory;
m_relativeRootDirectory = FilePath();
for (const std::string& str : list)
{
QtListItemWidget* widget = addListBoxItem();
widget->setText(QString::fromStdString(str));
}
m_relativeRootDirectory = root;
QTimer::singleShot(1, this, SLOT(resize()));
}