summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-06-05 11:46:45 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-06-05 11:46:45 +0300
commit598c58cef36537d6ba12ec329c616a6f43b2d2a5 (patch)
tree9f5fd633f8b3e13f33b5f4eeeb8f07d9810c7726
parentbff48b87d1dbd183e27e0bfb0d034d2b063bbc33 (diff)
NewStory: history removal dialog to work the same way as the core one does
-rw-r--r--plugins/NewStory/src/history_control.cpp5
1 files 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);