From b4c3f15f09dc85b736b57aa878aa0a9a7561316f Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Wed, 17 May 2023 20:51:52 +0200 Subject: [PATCH] Update SandMan.cpp --- SandboxiePlus/SandMan/SandMan.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/SandboxiePlus/SandMan/SandMan.cpp b/SandboxiePlus/SandMan/SandMan.cpp index 0832faad..32f1c06f 100644 --- a/SandboxiePlus/SandMan/SandMan.cpp +++ b/SandboxiePlus/SandMan/SandMan.cpp @@ -1430,16 +1430,18 @@ void CSandMan::timerEvent(QTimerEvent* pEvent) } bool bUpdatePending = !theConf->GetString("Updater/PendingUpdate").isEmpty(); - if (bUpdatePending) { - if (m_pDismissUpdate->isChecked()) - bUpdatePending = false; - else if (!m_pDismissUpdate->isVisible()) - m_pDismissUpdate->setVisible(true); + if (m_pDismissUpdate) { + if (bUpdatePending) { + if (m_pDismissUpdate->isChecked()) + bUpdatePending = false; + else if (!m_pDismissUpdate->isVisible()) + m_pDismissUpdate->setVisible(true); + } + else if (m_pDismissUpdate->isChecked()) + m_pDismissUpdate->setChecked(false); + if (!bUpdatePending && m_pDismissUpdate->isVisible()) + m_pDismissUpdate->setVisible(false); } - else if (m_pDismissUpdate->isChecked()) - m_pDismissUpdate->setChecked(false); - if(!bUpdatePending && m_pDismissUpdate->isVisible()) - m_pDismissUpdate->setVisible(false); if (m_bIconEmpty != (ActiveProcesses == 0) || m_bIconBusy != bIconBusy || m_iIconDisabled != (bForceProcessDisabled ? 1 : 0) || bUpdatePending || m_bIconSun) {