mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Ref T215, some adjustments of user object
* remove "valid" from some functions, because no validity is checked * homebase + real name string
This commit is contained in:
@@ -193,7 +193,7 @@ namespace BlackGui
|
||||
if (m_flightPlan.wasSentOrLoaded()) { return; }
|
||||
|
||||
// only override with valid values
|
||||
if (user.hasValidRealName())
|
||||
if (user.hasRealName())
|
||||
{
|
||||
ui->le_PilotsName->setText(user.getRealName());
|
||||
}
|
||||
@@ -201,7 +201,7 @@ namespace BlackGui
|
||||
{
|
||||
ui->le_PilotsHomeBase->setText(user.getHomeBase().getIcaoCode());
|
||||
}
|
||||
if (user.hasValidCallsign())
|
||||
if (user.hasCallsign())
|
||||
{
|
||||
ui->le_Callsign->setText(user.getCallsign().asString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user