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

View file

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