mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Formatting this->ui to ui
This commit is contained in:
committed by
Roland Winklmeier
parent
7330ccba1b
commit
aafff6cd82
@@ -81,7 +81,7 @@ namespace BlackGui
|
||||
{
|
||||
if (!this->isVisible()) { return; } // for performance reasons
|
||||
m_aircraft = sGui->getIContextNetwork()->getAircraftInRange();
|
||||
this->ui->cb_RemoteAircraftSelector->clear();
|
||||
ui->cb_RemoteAircraftSelector->clear();
|
||||
if (m_aircraft.isEmpty()) { return; }
|
||||
|
||||
CCallsign currentSelection(this->getSelectedCallsign());
|
||||
@@ -105,14 +105,14 @@ namespace BlackGui
|
||||
}
|
||||
|
||||
// new combobox
|
||||
this->ui->cb_RemoteAircraftSelector->addItems(items);
|
||||
ui->cb_RemoteAircraftSelector->addItems(items);
|
||||
|
||||
// set old selection if possible
|
||||
if (currentSelection.isEmpty()) { return; }
|
||||
int index = m_aircraft.firstIndexOfCallsign(currentSelection);
|
||||
if (index >= 0 && index < this->ui->cb_RemoteAircraftSelector->count())
|
||||
if (index >= 0 && index < ui->cb_RemoteAircraftSelector->count())
|
||||
{
|
||||
this->ui->cb_RemoteAircraftSelector->setCurrentIndex(index);
|
||||
ui->cb_RemoteAircraftSelector->setCurrentIndex(index);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user