mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-05 17:55:45 +08:00
refs #768, model string in login component is supposed to be empty without simulator
This commit is contained in:
@@ -176,7 +176,7 @@ namespace BlackGui
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this->setOwnModel();
|
this->setOwnModelAndIcaoValues();
|
||||||
if (this->m_visible)
|
if (this->m_visible)
|
||||||
{
|
{
|
||||||
// already visible:
|
// already visible:
|
||||||
@@ -434,7 +434,7 @@ namespace BlackGui
|
|||||||
this->m_logoffCountdownTimer->start();
|
this->m_logoffCountdownTimer->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CLoginComponent::setOwnModel()
|
void CLoginComponent::setOwnModelAndIcaoValues()
|
||||||
{
|
{
|
||||||
Q_ASSERT(sGui->getIContextOwnAircraft());
|
Q_ASSERT(sGui->getIContextOwnAircraft());
|
||||||
Q_ASSERT(sGui->getIContextSimulator());
|
Q_ASSERT(sGui->getIContextSimulator());
|
||||||
@@ -477,7 +477,6 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CLoginComponent::setGuiIcaoValues(const CAircraftModel &model, bool onlyIfEmpty)
|
void CLoginComponent::setGuiIcaoValues(const CAircraftModel &model, bool onlyIfEmpty)
|
||||||
{
|
{
|
||||||
ui->le_SimulatorModel->setText(model.getModelStringAndDbKey());
|
|
||||||
if (!onlyIfEmpty || !ui->selector_AircraftIcao->isSet())
|
if (!onlyIfEmpty || !ui->selector_AircraftIcao->isSet())
|
||||||
{
|
{
|
||||||
ui->selector_AircraftIcao->setAircraftIcao(model.getAircraftIcaoCode());
|
ui->selector_AircraftIcao->setAircraftIcao(model.getAircraftIcaoCode());
|
||||||
|
|||||||
@@ -172,8 +172,8 @@ namespace BlackGui
|
|||||||
//! Logoff countdown
|
//! Logoff countdown
|
||||||
void startLogoffTimerCountdown();
|
void startLogoffTimerCountdown();
|
||||||
|
|
||||||
//! Own model string
|
//! Own model and ICAO data
|
||||||
void setOwnModel();
|
void setOwnModelAndIcaoValues();
|
||||||
|
|
||||||
//! Set ICAO values
|
//! Set ICAO values
|
||||||
void setGuiIcaoValues(const BlackMisc::Simulation::CAircraftModel &model, bool onlyIfEmpty);
|
void setGuiIcaoValues(const BlackMisc::Simulation::CAircraftModel &model, bool onlyIfEmpty);
|
||||||
|
|||||||
Reference in New Issue
Block a user