From 92fd00f096f795bda97fac52cc17874d120d1165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AC=9B=E9=B9=BFFlutyDeer?= <68263367+flutydeer@users.noreply.github.com> Date: Sun, 29 Jan 2023 14:30:13 +0800 Subject: [PATCH] Fix drag-drop url bug --- gui/mainwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/mainwindow.py b/gui/mainwindow.py index 0006d91..d6863c2 100644 --- a/gui/mainwindow.py +++ b/gui/mainwindow.py @@ -210,7 +210,7 @@ def dragEnterEvent(self, event): def dropEvent(self, event): urls = event.mimeData().urls() for url in urls: - path = url.toLocalFile() + path = urllib.parse.unquote(url.toLocalFile()) ext = os.path.splitext(path)[1] if ext.lower() != '.wav': continue