mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-24 10:24:07 +02:00
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:
commit
c7f7e2487c
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