fix hifi url handling after update to 5.3.2

This commit is contained in:
Stephen Birarda 2014-11-11 20:45:04 -08:00
parent a1e8848525
commit 9bd870f4b0

View file

@ -837,14 +837,12 @@ void Application::controlledBroadcastToNodes(const QByteArray& packet, const Nod
}
bool Application::event(QEvent* event) {
// handle custom URL
if (event->type() == QEvent::FileOpen) {
QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(event);
if (!fileEvent->url().isEmpty()) {
AddressManager::getInstance().handleLookupString(fileEvent->url().toLocalFile());
if (fileEvent->url().isValid()) {
openUrl(fileEvent->url());
}
return false;