Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1384,7 +1384,7 @@ void Application::dropEvent(QDropEvent *event) { · 1383 unmodified lines | ||
| 1384 | 1384 | QString snapshotPath; |
| 1385 | 1385 | const QMimeData *mimeData = event->mimeData(); |
| 1386 | 1386 | foreach (QUrl url, mimeData->urls()) { |
| 1387 | − if (url.url().toLower().endsWith("jpg")) { | |
| 1387 | + if (url.url().toLower().endsWith(SNAPSHOT_EXTENSION)) { | |
| 1388 | 1388 | snapshotPath = url.url().remove("file://"); |
| 1389 | 1389 | break; |
| 1390 | 1390 | } |