Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -882,9 +882,15 @@ bool Application::event(QEvent* event) { · 881 unmodified lines | |||
| 882 | if (event->type() == QEvent::FileOpen) { | 882 | if (event->type() == QEvent::FileOpen) { |
| 883 | 883 | ||
| 884 | QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event); | 884 | QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event); |
| 885 | |||
| 886 | QUrl url = fileEvent->url(); | ||
| 885 | 887 | ||
| 886 | if (!fileEvent->url().isEmpty()) { | 888 | if (!url.isEmpty()) { |
| 887 | DependencyManager::get<AddressManager>()->handleLookupString(fileEvent->url().toString()); | 889 | if (url.scheme() == HIFI_URL_SCHEME) { |
| 890 | DependencyManager::get<AddressManager>()->handleLookupString(fileEvent->url().toString()); | ||
| 891 | } else if (url.url().toLower().endsWith(SVO_EXTENSION)) { | ||
| 892 | emit svoImportRequested(url.url()); | ||
| 893 | } | ||
| 888 | } | 894 | } |
| 889 | 895 | ||
| 890 | return false; | 896 | return false; |