History

added SNAPSHOT_EXTENSION constant

stojce committed 12 years ago

Commit 08c8f471 parent fe6f5a33 files · +4 −2Browse files

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

Unified · Split

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

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