From dcefa8813302537d8422f614837260b6e042cb1d Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 24 Sep 2018 00:51:38 +0200 Subject: [PATCH] Display plugin name if simulator info is not available --- src/blackcore/simulator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/blackcore/simulator.cpp b/src/blackcore/simulator.cpp index 5bcb762f1..9e85fd6bb 100644 --- a/src/blackcore/simulator.cpp +++ b/src/blackcore/simulator.cpp @@ -625,7 +625,10 @@ namespace BlackCore m_simulatorInternals.setSwiftPluginName(this->getSimulatorPluginInfo().toQString()); // info - CLogMessage(this).info("Initialized simulator driver: '%1'") << this->getSimulatorInfo().toQString(); + CLogMessage(this).info("Initialized simulator driver: '%1'") << + (this->getSimulatorInfo().isUnspecified() ? + this->getSimulatorPluginInfo().toQString() : + this->getSimulatorInfo().toQString()); } void ISimulator::onRecalculatedRenderedAircraft(const CAirspaceAircraftSnapshot &snapshot)