Shutdown guard

This commit is contained in:
Klaus Basan
2018-05-10 03:58:08 +02:00
parent 47afc4d6fc
commit 43cc99710a
2 changed files with 7 additions and 2 deletions

View File

@@ -56,6 +56,7 @@ namespace BlackGui
void CAircraftPartsHistory::initGui()
{
if (!sGui || sGui->isShuttingDown() || !sGui->getIContextNetwork()) { return; }
const bool needCallsigns = this->partsHistoryEnabled();
if (needCallsigns && !m_timerUpdateHistory.isActive())
{