Display plugin name if simulator info is not available

This commit is contained in:
Klaus Basan
2018-09-24 00:51:38 +02:00
parent bb385cba79
commit dcefa88133

View File

@@ -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)