Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -839,14 +839,12 @@ void Application::controlledBroadcastToNodes(const QByteArray& packet, const Nod · 838 unmodified lines | |||
| 839 | } | 839 | } |
| 840 | 840 | ||
| 841 | bool Application::event(QEvent* event) { | 841 | bool Application::event(QEvent* event) { |
| 842 | |||
| 843 | // handle custom URL | 842 | // handle custom URL |
| 844 | if (event->type() == QEvent::FileOpen) { | 843 | if (event->type() == QEvent::FileOpen) { |
| 845 | 844 | ||
| 846 | QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event); | 845 | QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event); |
| 847 | 846 | if (fileEvent->url().isValid()) { | |
| 848 | if (!fileEvent->url().isEmpty()) { | 847 | openUrl(fileEvent->url()); |
| 849 | AddressManager::getInstance().handleLookupString(fileEvent->url().toLocalFile()); | ||
| 850 | } | 848 | } |
| 851 | 849 | ||
| 852 | return false; | 850 | return false; |