mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Ref T529, use no sort order as workaround for validation messages
This will be superseded later by `IOrderable`
This commit is contained in:
committed by
Mat Sutcliffe
parent
e1fccf17d8
commit
f363d4f41b
@@ -29,6 +29,7 @@ namespace BlackGui
|
||||
ui->setupUi(this);
|
||||
ui->comp_Simulator->setMode(CSimulatorSelector::ComboBox);
|
||||
ui->comp_Simulator->setRememberSelection(false);
|
||||
ui->comp_Messages->setNoSorting(); // keep order
|
||||
|
||||
const CAircraftMatcherSetup setup = m_matchingSettings.get();
|
||||
ui->cb_EnableStartupCheck->setChecked(setup.doVerificationAtStartup());
|
||||
@@ -60,7 +61,11 @@ namespace BlackGui
|
||||
ui->tvp_InvalidModels->updateContainerMaybeAsync(invalid);
|
||||
ui->comp_Simulator->setValue(simulator);
|
||||
ui->comp_Messages->clear();
|
||||
ui->comp_Messages->appendStatusMessagesToList(msgs);
|
||||
|
||||
if (!msgs.isEmpty())
|
||||
{
|
||||
ui->comp_Messages->appendStatusMessagesToList(msgs.isSortedLatestLast() ? CStatusMessageList(msgs.reversed()) : msgs);
|
||||
}
|
||||
|
||||
const QString msg = stopped ?
|
||||
QStringLiteral("Validation for '%1' stopped, maybe your models are not accessible").arg(simulator.toQString(true)) :
|
||||
|
||||
Reference in New Issue
Block a user