Renamed function to hasSuccesfullyConnectedSwiftDb()

This commit is contained in:
Klaus Basan
2017-09-18 00:40:07 +02:00
committed by Mathew Sutcliffe
parent 1aa8cfb1e8
commit 52caf795d1
4 changed files with 5 additions and 5 deletions

View File

@@ -165,7 +165,7 @@ namespace BlackCore
initSharedInfoObjectReaderAndTriggerRead(); initSharedInfoObjectReaderAndTriggerRead();
} }
bool CWebDataServices::hasConnectedSwiftDb() const bool CWebDataServices::hasSuccesfullyConnectedSwiftDb() const
{ {
if (!m_icaoDataReader && !m_modelDataReader && !m_airportDataReader && !m_dbInfoDataReader) { return false; } if (!m_icaoDataReader && !m_modelDataReader && !m_airportDataReader && !m_dbInfoDataReader) { return false; }

View File

@@ -398,8 +398,8 @@ namespace BlackCore
//! For all available readers the log info is generated //! For all available readers the log info is generated
QString getReadersLog(const QString separator = "\n") const; QString getReadersLog(const QString separator = "\n") const;
//! Has already connect swift DB? //! Has already successfully connect swift DB?
bool hasConnectedSwiftDb() const; bool hasSuccesfullyConnectedSwiftDb() const;
//! Reset the flags what was already signaled //! Reset the flags what was already signaled
void resetSignalFlags(); void resetSignalFlags();

View File

@@ -83,7 +83,7 @@ namespace BlackGui
bool CDataInfoAreaComponent::writeDbDataToResourceDir() const 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"); CLogMessage(this).warning("No connection to DB yet, no new data loaded which can be written");
return false; return false;

View File

@@ -428,7 +428,7 @@ namespace BlackGui
CMenuAction CMenuActions::addMenuStash() CMenuAction CMenuActions::addMenuStash()
{ {
if (this->containsMenu(CMenuAction::pathStash())) { return CMenuAction(); } 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!)"); const QString txt(canConnectDb ? "Stash tools" : "Stash tools (Warning: no DB!)");
return this->addMenu(CIcons::appDbStash16(), txt, CMenuAction::pathStash()); return this->addMenu(CIcons::appDbStash16(), txt, CMenuAction::pathStash());
} }