From f3a7eef458940abd93e39ab7930820a18452519f Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sun, 3 Jun 2018 23:42:37 +0200 Subject: [PATCH] Increased number of cycles when displaying interpolation log. in simulator --- src/blackcore/simulatorcommon.cpp | 2 +- src/blackcore/simulatorcommon.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blackcore/simulatorcommon.cpp b/src/blackcore/simulatorcommon.cpp index 4d0ef1a20..b1298daec 100644 --- a/src/blackcore/simulatorcommon.cpp +++ b/src/blackcore/simulatorcommon.cpp @@ -823,7 +823,7 @@ namespace BlackCore const QPointer myself(this); QTimer::singleShot(t, this, [ = ] { - if (myself.isNull()) { return; } + if (myself.isNull() || myself->isShuttingDown()) { return; } this->displayLoggedSituationInSimulator(cs, stopLogging, times - 1); }); } diff --git a/src/blackcore/simulatorcommon.h b/src/blackcore/simulatorcommon.h index 4ea10bd65..0cb10e41b 100644 --- a/src/blackcore/simulatorcommon.h +++ b/src/blackcore/simulatorcommon.h @@ -130,6 +130,7 @@ namespace BlackCore const BlackMisc::Simulation::CInterpolationLogger &interpolationLogger() const { return m_interpolationLogger; } //! The latest logged data formatted + //! \remark public only for log. displays QString latestLoggedDataFormatted(const BlackMisc::Aviation::CCallsign &cs) const; protected: @@ -269,7 +270,7 @@ namespace BlackCore void callPhysicallyRemoveRemoteAircraft(const BlackMisc::Aviation::CCallsign &remoteCallsign); //! Display a logged situation in simulator - void displayLoggedSituationInSimulator(const BlackMisc::Aviation::CCallsign &cs, bool stopLogging, int times = 25); + void displayLoggedSituationInSimulator(const BlackMisc::Aviation::CCallsign &cs, bool stopLogging, int times = 40); bool m_blinkCycle = false; //!< used for highlighting qint64 m_highlightEndTimeMsEpoch = 0; //!< end highlighting