mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
No validated signal if no warnings/errors (settimg dependent)
This commit is contained in:
@@ -115,6 +115,7 @@ namespace BlackMisc
|
|||||||
CStatusMessageList msgs;
|
CStatusMessageList msgs;
|
||||||
bool wasStopped = false;
|
bool wasStopped = false;
|
||||||
bool validated = false;
|
bool validated = false;
|
||||||
|
bool onlyErrorsAndWarnings = false;
|
||||||
const CSimulatorInfo simulator = this->getCurrentSimulator();
|
const CSimulatorInfo simulator = this->getCurrentSimulator();
|
||||||
const qint64 started = QDateTime::currentMSecsSinceEpoch();
|
const qint64 started = QDateTime::currentMSecsSinceEpoch();
|
||||||
|
|
||||||
@@ -126,6 +127,7 @@ namespace BlackMisc
|
|||||||
const CAircraftMatcherSetup setup = m_matchingSettings.get();
|
const CAircraftMatcherSetup setup = m_matchingSettings.get();
|
||||||
if (!setup.doVerificationAtStartup()) { break; }
|
if (!setup.doVerificationAtStartup()) { break; }
|
||||||
|
|
||||||
|
onlyErrorsAndWarnings = setup.onlyShowVerificationWarningsAndErrors();
|
||||||
const CAircraftModelList models = m_modelSets.getCachedModels(simulator);
|
const CAircraftModelList models = m_modelSets.getCachedModels(simulator);
|
||||||
if (models.isEmpty())
|
if (models.isEmpty())
|
||||||
{
|
{
|
||||||
@@ -155,7 +157,8 @@ namespace BlackMisc
|
|||||||
emit this->validating(false);
|
emit this->validating(false);
|
||||||
if (validated)
|
if (validated)
|
||||||
{
|
{
|
||||||
emit this->validated(simulator, valid, invalid, wasStopped, msgs);
|
const bool e = !onlyErrorsAndWarnings || (!invalid.isEmpty() || msgs.hasWarningOrErrorMessages());
|
||||||
|
if (e) { emit this->validated(simulator, valid, invalid, wasStopped, msgs); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
Reference in New Issue
Block a user