Merge pull request #12738 from sethalves/fix-json-drag-and-drop-rc66

fix -- make drag-and-drop of json mean import again
This commit is contained in:
John Conklin II 2018-03-29 12:46:09 -07:00 committed by GitHub
commit c7f7e2487c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<AddressManager>().data(), "handleLookupString",
Qt::AutoConnection, Q_ARG(const QString&, urlString));
return true;