diff --git a/src/blackgui/components/logincomponent.cpp b/src/blackgui/components/logincomponent.cpp index 335077f35..b071779fa 100644 --- a/src/blackgui/components/logincomponent.cpp +++ b/src/blackgui/components/logincomponent.cpp @@ -198,34 +198,13 @@ namespace BlackGui m_logoffCountdownTimer.stop(); // in any case stop the timer if (currentWidget != this && currentWidget != this->parentWidget()) { - // const bool wasVisible = m_visible; - m_visible = false; m_logoffCountdownTimer.stop(); - - /** T639 - if (!wasVisible) - { - // set own values, and send signals - this->setOwnModelAndIcaoValues(); - } - **/ } else { - if (m_visible) - { - // already visible: - // re-trigger! treat as same as OK - this->toggleNetworkConnection(); - } - else - { - m_visible = true; - this->setOwnModelAndIcaoValues(); - const bool isConnected = sGui->getIContextNetwork()->isConnected(); - this->setUiLoginState(isConnected); - if (isConnected) { this->startLogoffTimerCountdown(); } - } + this->setOwnModelAndIcaoValues(); + const bool isConnected = sGui->getIContextNetwork()->isConnected(); + this->setUiLoginState(isConnected); } // we decided to make it difficult for users to disable it diff --git a/src/blackgui/components/logincomponent.h b/src/blackgui/components/logincomponent.h index eacc85a72..d8072fb90 100644 --- a/src/blackgui/components/logincomponent.h +++ b/src/blackgui/components/logincomponent.h @@ -249,7 +249,6 @@ namespace BlackGui QScopedPointer m_mappingWizard; //!< mapping wizard BlackMisc::CDigestSignal m_changedLoginDataDigestSignal { this, &CLoginComponent::loginDataChangedDigest, 1500, 10 }; bool m_autoPopupWizard = false; //!< automatically popup wizard if mapping is needed - bool m_visible = false; //!< is this component selected? bool m_updatePilotOnServerChanges = true; const QIcon m_iconPlay {":/famfamfam/icons/famfamfam/icons/silk/control_play_blue.png"}; const QIcon m_iconPause {":/famfamfam/icons/famfamfam/icons/silk/control_pause_blue.png"};