From dcfebde54a7ea2f66b2abd1f2abb5ac205b9dfe5 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 29 Mar 2018 10:50:43 -0700 Subject: [PATCH] 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 --- interface/src/Application.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 7e6c65f8f4..af0ac5bc78 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -6275,8 +6275,9 @@ bool Application::canAcceptURL(const QString& urlString) const { bool Application::acceptURL(const QString& urlString, bool defaultUpload) { 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().data(), "handleLookupString", Qt::AutoConnection, Q_ARG(const QString&, urlString)); return true;