mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 14:59:47 +02:00
Fix bug with dropping hifi images not working on Windows
URLs on Windows included three forward-slashes, ex `file:///C:...`. Using `toLocalFile()` correctly stringifies the location.
This commit is contained in:
parent
431d69e9d9
commit
ece3390b4e
1 changed files with 1 additions and 1 deletions
|
@ -1315,7 +1315,7 @@ void Application::dropEvent(QDropEvent *event) {
|
|||
const QMimeData *mimeData = event->mimeData();
|
||||
foreach (QUrl url, mimeData->urls()) {
|
||||
if (url.url().toLower().endsWith(SNAPSHOT_EXTENSION)) {
|
||||
snapshotPath = url.url().remove("file://");
|
||||
snapshotPath = url.toLocalFile();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue