mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 20:25:00 +02:00
put back the pre serverless-domain behavior for when a json file is dragged-and-dropped into the interface window -- import the json rather than load as a serverless-domain
This commit is contained in:
parent
d59a721f16
commit
dcfebde54a
1 changed files with 3 additions and 2 deletions
|
@ -6275,8 +6275,9 @@ bool Application::canAcceptURL(const QString& urlString) const {
|
||||||
|
|
||||||
bool Application::acceptURL(const QString& urlString, bool defaultUpload) {
|
bool Application::acceptURL(const QString& urlString, bool defaultUpload) {
|
||||||
QUrl url(urlString);
|
QUrl url(urlString);
|
||||||
if (isDomainURL(url)) {
|
|
||||||
// this is a URL for a domain, either hifi:// or serverless - have the AddressManager handle it
|
if (url.scheme() == URL_SCHEME_HIFI) {
|
||||||
|
// this is a hifi URL - have the AddressManager handle it
|
||||||
QMetaObject::invokeMethod(DependencyManager::get<AddressManager>().data(), "handleLookupString",
|
QMetaObject::invokeMethod(DependencyManager::get<AddressManager>().data(), "handleLookupString",
|
||||||
Qt::AutoConnection, Q_ARG(const QString&, urlString));
|
Qt::AutoConnection, Q_ARG(const QString&, urlString));
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue