From 9eb9fc9dce77bb2113411cca31d18b4d6ebd6e49 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 16 Apr 2024 12:28:22 +1000 Subject: [PATCH] Qt: Fix drag/drop on Windows --- src/duckstation-qt/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duckstation-qt/mainwindow.cpp b/src/duckstation-qt/mainwindow.cpp index c137c41fd..3def9ff76 100644 --- a/src/duckstation-qt/mainwindow.cpp +++ b/src/duckstation-qt/mainwindow.cpp @@ -2698,7 +2698,7 @@ static QString getFilenameFromMimeData(const QMimeData* md) // only one url accepted const QList urls(md->urls()); if (urls.size() == 1) - filename = urls.front().toLocalFile(); + filename = QDir::toNativeSeparators(urls.front().toLocalFile()); } return filename;