From 7896119228c6405bace9511f7cfe582bd755cc9c Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 12 Sep 2014 09:56:40 -0700 Subject: [PATCH] remap two goToUrl calls to AddressManager --- interface/src/Application.cpp | 2 +- interface/src/ui/UserLocationsDialog.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 39c8f1a82f..350f0fe1b9 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -813,7 +813,7 @@ bool Application::event(QEvent* event) { QFileOpenEvent* fileEvent = static_cast(event); bool isHifiSchemeURL = !fileEvent->url().isEmpty() && fileEvent->url().toLocalFile().startsWith(HIFI_URL_SCHEME); if (isHifiSchemeURL) { -// Menu::getInstance()->goToURL(fileEvent->url().toLocalFile()); + AddressManager::getInstance().handleLookupString(fileEvent->url().toLocalFile()); } return false; } diff --git a/interface/src/ui/UserLocationsDialog.cpp b/interface/src/ui/UserLocationsDialog.cpp index 5aed0c3df4..31f388d045 100644 --- a/interface/src/ui/UserLocationsDialog.cpp +++ b/interface/src/ui/UserLocationsDialog.cpp @@ -13,6 +13,8 @@ #include #include +#include + #include "Menu.h" #include "UserLocationsDialog.h" @@ -51,8 +53,8 @@ void UserLocationsDialog::updateEnabled() { } void UserLocationsDialog::goToModelIndex(const QModelIndex& index) { - QVariant location = _proxyModel.data(index.sibling(index.row(), UserLocationsModel::AddressColumn)); -// Menu::getInstance()->goToURL(location.toString()); + QVariant address = _proxyModel.data(index.sibling(index.row(), UserLocationsModel::AddressColumn)); + AddressManager::getInstance().handleLookupString(address.toString()); } void UserLocationsDialog::deleteSelection() {