mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-17 21:24:00 +00:00
Make drag&drop of unicode filenames work.
This commit is contained in:
@@ -158,7 +158,7 @@ class BaseTreeView(QtGui.QTreeWidget):
|
||||
# TODO: use the drop target to move files to specific albums/tracks/clusters
|
||||
for url in urls:
|
||||
if url.scheme() == "file":
|
||||
fileName = str(url.toLocalFile())
|
||||
fileName = unicode(url.toLocalFile())
|
||||
fileName = unicode(QtCore.QUrl.fromPercentEncoding(QtCore.QByteArray(fileName)))
|
||||
if os.path.isdir(encodeFileName(fileName)):
|
||||
self.emit(QtCore.SIGNAL("addDirectory"), fileName)
|
||||
|
||||
Reference in New Issue
Block a user