Minor fixes

This commit is contained in:
Klaus Basan
2016-10-18 04:29:43 +02:00
parent 45a620dab5
commit 34d74904ff
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ namespace BlackGui
void CDbAirlineIcaoComponent::ps_reload() void CDbAirlineIcaoComponent::ps_reload()
{ {
if (!sGui) { return; } if (!sGui || !sGui->hasWebDataServices()) { return; }
sGui->getWebDataServices()->triggerReloadFromDb(CEntityFlags::AirlineIcaoEntity, QDateTime()); sGui->getWebDataServices()->triggerReloadFromDb(CEntityFlags::AirlineIcaoEntity, QDateTime());
} }
} // ns } // ns

View File

@@ -57,7 +57,7 @@ namespace BlackGui
void CDbCountryComponent::ps_reload() void CDbCountryComponent::ps_reload()
{ {
if (!sGui) { return; } if (!sGui || !sGui->getWebDataServices()) { return; }
sApp->getWebDataServices()->triggerReloadFromDb(CEntityFlags::CountryEntity); sApp->getWebDataServices()->triggerReloadFromDb(CEntityFlags::CountryEntity);
} }
} // ns } // ns