mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Introduced hint for callsign to specify callsign type (aircraft? ATC?) by context.
Background: Pilots can login in with virtually any callsign like XXX_OBS, resulting in wrong interpretations (as OBS here is no ATC station).
This commit is contained in:
committed by
Mathew Sutcliffe
parent
acec379151
commit
7b1beaf02d
@@ -100,7 +100,7 @@ namespace BlackGui
|
||||
for (const QString &type : types.keys())
|
||||
{
|
||||
// ownership of QStandardItem is taken by model
|
||||
QStandardItem *typeFolderFirstColumn = new QStandardItem(CCallsign::suffixToIcon(type).toQIcon(), type);
|
||||
QStandardItem *typeFolderFirstColumn = new QStandardItem(CCallsign::atcSuffixToIcon(type).toQIcon(), type);
|
||||
QList<QStandardItem *> typeFolderRow { typeFolderFirstColumn };
|
||||
model->invisibleRootItem()->appendRow(typeFolderRow);
|
||||
CAtcStationList stations = this->getContainer().findBySuffix(type);
|
||||
|
||||
Reference in New Issue
Block a user