Qt: Fix drag/drop on Windows

This commit is contained in:
Stenzek 2024-04-16 12:28:22 +10:00
parent be1d558be1
commit 9eb9fc9dce
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -2698,7 +2698,7 @@ static QString getFilenameFromMimeData(const QMimeData* md)
// only one url accepted // only one url accepted
const QList<QUrl> urls(md->urls()); const QList<QUrl> urls(md->urls());
if (urls.size() == 1) if (urls.size() == 1)
filename = urls.front().toLocalFile(); filename = QDir::toNativeSeparators(urls.front().toLocalFile());
} }
return filename; return filename;