diff --git a/src/blackgui/components/dbairlineicaocomponent.cpp b/src/blackgui/components/dbairlineicaocomponent.cpp index 5bc3c4e9c..9f1fc3925 100644 --- a/src/blackgui/components/dbairlineicaocomponent.cpp +++ b/src/blackgui/components/dbairlineicaocomponent.cpp @@ -62,7 +62,7 @@ namespace BlackGui void CDbAirlineIcaoComponent::ps_reload() { - if (!sGui) { return; } + if (!sGui || !sGui->hasWebDataServices()) { return; } sGui->getWebDataServices()->triggerReloadFromDb(CEntityFlags::AirlineIcaoEntity, QDateTime()); } } // ns diff --git a/src/blackgui/components/dbcountrycomponent.cpp b/src/blackgui/components/dbcountrycomponent.cpp index 53ee7ec31..f4561d924 100644 --- a/src/blackgui/components/dbcountrycomponent.cpp +++ b/src/blackgui/components/dbcountrycomponent.cpp @@ -57,7 +57,7 @@ namespace BlackGui void CDbCountryComponent::ps_reload() { - if (!sGui) { return; } + if (!sGui || !sGui->getWebDataServices()) { return; } sApp->getWebDataServices()->triggerReloadFromDb(CEntityFlags::CountryEntity); } } // ns