From 598c58cef36537d6ba12ec329c616a6f43b2d2a5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 5 Jun 2024 11:46:45 +0300 Subject: NewStory: history removal dialog to work the same way as the core one does --- plugins/NewStory/src/history_control.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 8531236cef..91dcfa58a3 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -349,9 +349,8 @@ public: chkDelHistory.SetState(bDelHistory); chkDelHistory.Enable(bDelHistory); - bool bEnabled = bDelHistory && bForEveryone; - chkForEveryone.SetState(!bEnabled); - chkForEveryone.Enable(bEnabled); + chkForEveryone.SetState(false); + chkForEveryone.Enable(bDelHistory && bForEveryone); if (m_iNumEvents > 1) { CMStringW wszText(FORMAT, TranslateT("Do you really want to delete selected items (%d)?"), m_iNumEvents); -- cgit v1.2.3