Ref T514, fixed load progress checks

This commit is contained in:
Klaus Basan
2019-02-03 21:54:15 +01:00
committed by Mat Sutcliffe
parent 2aff3bb775
commit 72bba35423
3 changed files with 5 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ namespace BlackGui
{
Q_UNUSED(count);
if (!sGui || sGui->isShuttingDown() || !sGui->getWebDataServices()) { return; }
if (!entity.testFlag(CEntityFlags::LiveryEntity) && CEntityFlags::isFinishedReadState(readState)) { return; }
if (!entity.testFlag(CEntityFlags::LiveryEntity)) { return; }
if (CEntityFlags::isFinishedReadState(readState))
{
@@ -82,7 +82,7 @@ namespace BlackGui
void CDbLiveryComponent::onEntityDownloadProgress(CEntityFlags::Entity entity, int logId, int progress, qint64 current, qint64 max, const QUrl &url)
{
if (CEntityFlags::LiveryEntity != entity) { return; }
if (!entity.testFlag(CEntityFlags::LiveryEntity)) { return; }
this->showDownloadProgress(progress, current, max, url, 5000);
Q_UNUSED(logId);
}