Qt: Fix drag/drop on Windows
This commit is contained in:
parent
be1d558be1
commit
9eb9fc9dce
|
@ -2698,7 +2698,7 @@ static QString getFilenameFromMimeData(const QMimeData* md)
|
||||||
// only one url accepted
|
// only one url accepted
|
||||||
const QList<QUrl> urls(md->urls());
|
const QList<QUrl> urls(md->urls());
|
||||||
if (urls.size() == 1)
|
if (urls.size() == 1)
|
||||||
filename = urls.front().toLocalFile();
|
filename = QDir::toNativeSeparators(urls.front().toLocalFile());
|
||||||
}
|
}
|
||||||
|
|
||||||
return filename;
|
return filename;
|
||||||
|
|
Loading…
Reference in New Issue