refs #768, model string in login component is supposed to be empty without simulator

This commit is contained in:
Klaus Basan
2016-10-23 03:11:37 +02:00
parent 8c282a33bf
commit 847348cbe0
2 changed files with 4 additions and 5 deletions

View File

@@ -176,7 +176,7 @@ namespace BlackGui
}
else
{
this->setOwnModel();
this->setOwnModelAndIcaoValues();
if (this->m_visible)
{
// already visible:
@@ -434,7 +434,7 @@ namespace BlackGui
this->m_logoffCountdownTimer->start();
}
void CLoginComponent::setOwnModel()
void CLoginComponent::setOwnModelAndIcaoValues()
{
Q_ASSERT(sGui->getIContextOwnAircraft());
Q_ASSERT(sGui->getIContextSimulator());
@@ -477,7 +477,6 @@ namespace BlackGui
void CLoginComponent::setGuiIcaoValues(const CAircraftModel &model, bool onlyIfEmpty)
{
ui->le_SimulatorModel->setText(model.getModelStringAndDbKey());
if (!onlyIfEmpty || !ui->selector_AircraftIcao->isSet())
{
ui->selector_AircraftIcao->setAircraftIcao(model.getAircraftIcaoCode());