diff --git a/src/blackcore/webdataservices.cpp b/src/blackcore/webdataservices.cpp index 4dda1fef8..7466abbba 100644 --- a/src/blackcore/webdataservices.cpp +++ b/src/blackcore/webdataservices.cpp @@ -165,7 +165,7 @@ namespace BlackCore initSharedInfoObjectReaderAndTriggerRead(); } - bool CWebDataServices::hasConnectedSwiftDb() const + bool CWebDataServices::hasSuccesfullyConnectedSwiftDb() const { if (!m_icaoDataReader && !m_modelDataReader && !m_airportDataReader && !m_dbInfoDataReader) { return false; } diff --git a/src/blackcore/webdataservices.h b/src/blackcore/webdataservices.h index b89812dca..4ac905c70 100644 --- a/src/blackcore/webdataservices.h +++ b/src/blackcore/webdataservices.h @@ -398,8 +398,8 @@ namespace BlackCore //! For all available readers the log info is generated QString getReadersLog(const QString separator = "\n") const; - //! Has already connect swift DB? - bool hasConnectedSwiftDb() const; + //! Has already successfully connect swift DB? + bool hasSuccesfullyConnectedSwiftDb() const; //! Reset the flags what was already signaled void resetSignalFlags(); diff --git a/src/blackgui/components/datainfoareacomponent.cpp b/src/blackgui/components/datainfoareacomponent.cpp index d3f1c84d3..edb319347 100644 --- a/src/blackgui/components/datainfoareacomponent.cpp +++ b/src/blackgui/components/datainfoareacomponent.cpp @@ -83,7 +83,7 @@ namespace BlackGui bool CDataInfoAreaComponent::writeDbDataToResourceDir() const { - if (!sGui || !sGui->getWebDataServices()->hasConnectedSwiftDb()) + if (!sGui || !sGui->getWebDataServices()->hasSuccesfullyConnectedSwiftDb()) { CLogMessage(this).warning("No connection to DB yet, no new data loaded which can be written"); return false; diff --git a/src/blackgui/menus/menuaction.cpp b/src/blackgui/menus/menuaction.cpp index 7b3555e60..c59792cae 100644 --- a/src/blackgui/menus/menuaction.cpp +++ b/src/blackgui/menus/menuaction.cpp @@ -428,7 +428,7 @@ namespace BlackGui CMenuAction CMenuActions::addMenuStash() { if (this->containsMenu(CMenuAction::pathStash())) { return CMenuAction(); } - const bool canConnectDb = sGui->getWebDataServices()->hasConnectedSwiftDb(); + const bool canConnectDb = sGui->getWebDataServices()->hasSuccesfullyConnectedSwiftDb(); const QString txt(canConnectDb ? "Stash tools" : "Stash tools (Warning: no DB!)"); return this->addMenu(CIcons::appDbStash16(), txt, CMenuAction::pathStash()); }