From c90ab3b74a14b752fa9f1783a149490ad6fc0a1a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 24 Sep 2022 13:38:57 +0300 Subject: fixes #3194 (tabSRMM: ger rid of inverted logic) --- plugins/TabSRMM/src/msgdlgother.cpp | 5 +---- plugins/TabSRMM/src/msgoptions.cpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp index 87725bbc14..65e2189083 100644 --- a/plugins/TabSRMM/src/msgdlgother.cpp +++ b/plugins/TabSRMM/src/msgdlgother.cpp @@ -1544,10 +1544,7 @@ int CMsgDialog::MsgWindowMenuHandler(int selection, int menuId) void CMsgDialog::NotifyDeliveryFailure() const { - if (M.GetByte("adv_noErrorPopups", 0)) - return; - - if (!Popup_Enabled()) + if (!M.GetByte("adv_ErrorPopups", 1) || !Popup_Enabled()) return; POPUPDATAW ppd = {}; diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp index 17264791da..9ba3a141b1 100644 --- a/plugins/TabSRMM/src/msgoptions.cpp +++ b/plugins/TabSRMM/src/msgoptions.cpp @@ -1346,7 +1346,7 @@ TOptionListItem lvItemsModPlus[] = { 0, LPGENW("Show client description in info panel"), 1, LOI_TYPE_SETTING, (UINT_PTR)"ShowClientDescription", 0 }, { 0, LPGENW("On tab control"), 1, LOI_TYPE_SETTING, (UINT_PTR)"MetaiconTab", 1 }, { 0, LPGENW("On the button bar"), 0, LOI_TYPE_SETTING, (UINT_PTR)"MetaiconBar", 1 }, - { 0, LPGENW("Disable error popups on sending failures"), 0, LOI_TYPE_SETTING, (UINT_PTR)"adv_noErrorPopups", 2 }, + { 0, LPGENW("Enable error popups on sending failures"), 1, LOI_TYPE_SETTING, (UINT_PTR)"adv_ErrorPopups", 2 }, { 0, nullptr, 0, 0, 0, 0 } }; -- cgit v1.2.3