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
13841384 QString snapshotPath;
13851385 const QMimeData *mimeData = event->mimeData();
13861386 foreach (QUrl url, mimeData->urls()) {
1387− if (url.url().toLower().endsWith("jpg")) {
1387+ if (url.url().toLower().endsWith(SNAPSHOT_EXTENSION)) {
13881388 snapshotPath = url.url().remove("file://");
13891389 break;
13901390 }

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