CommandlineOptions: Use original paths instead of canonical paths

This commit is contained in:
Jonas Kvinge 2024-05-12 21:37:54 +02:00
parent 51adcf0f1e
commit decabe8d47
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@
#include <QIODevice>
#include <QDataStream>
#include <QBuffer>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QByteArray>
@ -364,7 +365,7 @@ bool CommandlineOptions::Parse() {
const QString value = DecodeName(argv_[i]);
QFileInfo fileinfo(value);
if (fileinfo.exists()) {
urls_ << QUrl::fromLocalFile(fileinfo.canonicalFilePath());
urls_ << QUrl::fromLocalFile(QDir::cleanPath(fileinfo.filePath()));
}
else {
urls_ << QUrl::fromUserInput(value);