History

make ResourceManager be owned by DependencyManager

Seth Alves committed 9 years ago

Commit 794495c1 parent 561786023 files · +68 −65Browse files

Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 23 files). Show all

Unified · Split

libraries/script-engine/src/FileScriptingInterface.cpp+1−1
@@ -85,7 +85,7 @@ QString FileScriptingInterface::convertUrlToPath(QUrl url) { · 84 unmodified lines
85// this function is not in use85// this function is not in use
86void FileScriptingInterface::downloadZip(QString path, const QString link) {86void FileScriptingInterface::downloadZip(QString path, const QString link) {
87 QUrl url = QUrl(link);87 QUrl url = QUrl(link);
88 auto request = ResourceManager::createResourceRequest(nullptr, url);88 auto request = DependencyManager::get<ResourceManager>()->createResourceRequest(nullptr, url);
89 connect(request, &ResourceRequest::finished, this, [this, path]{89 connect(request, &ResourceRequest::finished, this, [this, path]{
90 unzipFile(path, ""); // so intellisense isn't mad90 unzipFile(path, ""); // so intellisense isn't mad
91 });91 });