Skip to content

Commit

Permalink
Fix drag-drop url bug
Browse files Browse the repository at this point in the history
  • Loading branch information
flutydeer committed Jan 29, 2023
1 parent 32a31d8 commit 92fd00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92fd00f

Please sign in to comment.