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 | 841 | bool Application::event(QEvent* event) { |
| 842 | − | |
| 843 | 842 | // handle custom URL |
| 844 | 843 | if (event->type() == QEvent::FileOpen) { |
| 845 | 844 | |
| 846 | 845 | QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event); |
| 847 | − | |
| 848 | − if (!fileEvent->url().isEmpty()) { | |
| 849 | − AddressManager::getInstance().handleLookupString(fileEvent->url().toLocalFile()); | |
| 846 | + if (fileEvent->url().isValid()) { | |
| 847 | + openUrl(fileEvent->url()); | |
| 850 | 848 | } |
| 851 | 849 | |
| 852 | 850 | return false; |