From b9e2e26ab10a906ba553dc1ef8069b81d278b98c Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Wed, 5 Jun 2013 14:59:08 -0700 Subject: [PATCH] Don't restart the download when we're given the same URL. --- interface/src/AvatarVoxelSystem.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interface/src/AvatarVoxelSystem.cpp b/interface/src/AvatarVoxelSystem.cpp index ef2066d69e..8a7708587f 100644 --- a/interface/src/AvatarVoxelSystem.cpp +++ b/interface/src/AvatarVoxelSystem.cpp @@ -78,6 +78,11 @@ void AvatarVoxelSystem::removeOutOfView() { } void AvatarVoxelSystem::setVoxelURL(const QUrl& url) { + // don't restart the download if it's the same URL + if (_voxelURL == url) { + return; + } + // cancel any current download if (_voxelReply != 0) { delete _voxelReply;