mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
remap two goToUrl calls to AddressManager
This commit is contained in:
parent
74295a3869
commit
7896119228
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue