Issue #115 Don't stop timer when opening login view

Otherwise the timer will always stop immediately after it starts.
This commit is contained in:
Mat Sutcliffe
2021-09-10 18:19:12 +01:00
parent 3067c51885
commit 07fa2d47a3

View File

@@ -195,10 +195,9 @@ namespace BlackGui
void CLoginComponent::mainInfoAreaChanged(const QWidget *currentWidget) void CLoginComponent::mainInfoAreaChanged(const QWidget *currentWidget)
{ {
if (!sGui || sGui->isShuttingDown()) { return; } if (!sGui || sGui->isShuttingDown()) { return; }
m_logoffCountdownTimer.stop(); // in any case stop the timer
if (currentWidget != this && currentWidget != this->parentWidget()) if (currentWidget != this && currentWidget != this->parentWidget())
{ {
m_logoffCountdownTimer.stop(); //m_logoffCountdownTimer.stop();
} }
else else
{ {