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:
parent
6612eeb9e3
commit
07c898581c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user