fixed weird info box display of filenames

This commit is contained in:
Elisa Lupin-Jimenez 2017-08-25 11:21:07 -07:00
parent 7cee80f0cf
commit 4c40e3bdf4

View file

@ -6457,7 +6457,7 @@ void Application::addAssetToWorldFromURL(QString url) {
} }
if (url.contains("vr.google.com/downloads")) { if (url.contains("vr.google.com/downloads")) {
filename = url.section('/', -1); filename = url.section('/', -1);
filename.remove(".zip?noDownload=false"); filename.remove(".zip");
} }
if (!DependencyManager::get<NodeList>()->getThisNodeCanWriteAssets()) { if (!DependencyManager::get<NodeList>()->getThisNodeCanWriteAssets()) {
@ -6487,7 +6487,7 @@ void Application::addAssetToWorldFromURLRequestFinished() {
} }
if (url.contains("vr.google.com/downloads")) { if (url.contains("vr.google.com/downloads")) {
filename = url.section('/', -1); filename = url.section('/', -1);
filename.remove(".zip?noDownload=false"); filename.remove(".zip");
isBlocks = true; isBlocks = true;
} }