GUI: use native path separators in playlist selection dialog

This commit is contained in:
Moritz Bunkus 2019-08-19 13:13:57 +02:00
parent 831bc43255
commit 22ec2f9ac4
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -126,7 +126,7 @@ public:
PlaylistItem::PlaylistItem(unsigned int order,
QFileInfo const &fileInfo)
: QTreeWidgetItem{ QStringList{} << QString::number(order) << fileInfo.fileName() << fileInfo.path() }
: QTreeWidgetItem{ QStringList{} << QString::number(order) << fileInfo.fileName() << QDir::toNativeSeparators(fileInfo.path()) }
, m_order{order}
, m_fileName{fileInfo.fileName()}
, m_path{fileInfo.path()}