Don't restart the download when we're given the same URL.

This commit is contained in:
Andrzej Kapolka 2013-06-05 14:59:08 -07:00
parent a4aa8e7bde
commit b9e2e26ab1

View file

@ -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;