URLs on Windows included three forward-slashes, ex `file:///C:...`. Using `toLocalFile()` correctly stringifies the location.
Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -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 | } |