From 34d74904ff7366979aea04768ab9a3563d46c463 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 18 Oct 2016 04:29:43 +0200 Subject: [PATCH] Minor fixes --- src/blackgui/components/dbairlineicaocomponent.cpp | 2 +- src/blackgui/components/dbcountrycomponent.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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