mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
Don't restart the download when we're given the same URL.
This commit is contained in:
parent
a4aa8e7bde
commit
b9e2e26ab1
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue