1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-27 15:49:43 +01:00

CommandlineOptions: Pass absolute paths for urls

This commit is contained in:
Jonas Kvinge 2024-11-11 16:15:06 +01:00
parent 6612eeb9e3
commit 07c898581c

View File

@ -371,7 +371,7 @@ bool CommandlineOptions::Parse() {
const QString value = DecodeName(argv_[i]);
QFileInfo fileinfo(value);
if (fileinfo.exists()) {
urls_ << QUrl::fromLocalFile(QDir::cleanPath(fileinfo.filePath()));
urls_ << QUrl::fromLocalFile(fileinfo.absoluteFilePath());
}
else {
urls_ << QUrl::fromUserInput(value);