From ece3390b4eabaa729daea028785876032c3f37f4 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Mon, 1 Sep 2014 22:14:28 -0700 Subject: [PATCH] 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. --- interface/src/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 10ae4b0303..7c8991d5a6 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -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; } }