History

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.

Ryan Huffman committed 12 years ago

Commit ece33901 parent 431d69e1 file · +1 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+1−1
@@ -1315,7 +1315,7 @@ void Application::dropEvent(QDropEvent *event) { · 1314 unmodified lines
1315 const QMimeData *mimeData = event->mimeData();1315 const QMimeData *mimeData = event->mimeData();
1316 foreach (QUrl url, mimeData->urls()) {1316 foreach (QUrl url, mimeData->urls()) {
1317 if (url.url().toLower().endsWith(SNAPSHOT_EXTENSION)) {1317 if (url.url().toLower().endsWith(SNAPSHOT_EXTENSION)) {
1318 snapshotPath = url.url().remove("file://");1318 snapshotPath = url.toLocalFile();
1319 break;1319 break;
1320 }1320 }
1321 }1321 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t