remap two goToUrl calls to AddressManager

This commit is contained in:
Stephen Birarda 2014-09-12 09:56:40 -07:00
parent 74295a3869
commit 7896119228
2 changed files with 5 additions and 3 deletions

View file

@ -813,7 +813,7 @@ bool Application::event(QEvent* event) {
QFileOpenEvent* fileEvent = static_cast<QFileOpenEvent*>(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;
}

View file

@ -13,6 +13,8 @@
#include <QInputDialog>
#include <QPushButton>
#include <AddressManager.h>
#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() {