From 19430e9bb2857cb136c07df0f4aed88da0ac592c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 15 Nov 2023 10:49:37 +0300 Subject: =?UTF-8?q?fixes=20#3924=20(NewStory:=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D0=BE=D1=82=D0=BA=D0=B0=D0=B7=D0=B5=20=D1=83=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=D1=8F=D1=82=D1=8C=20=D0=B8=D1=81=D1=82=D0=BE=D1=80=D0=B8=D1=8E?= =?UTF-8?q?=20=D1=81=D0=BE=D0=B4=D0=B5=D1=80=D0=B6=D0=B8=D0=BC=D0=BE=D0=B5?= =?UTF-8?q?=20=D0=B8=D1=81=D1=82=D0=BE=D1=80=D0=B8=D0=B8=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=BF=D0=B0=D0=B4=D0=B0=D0=B5=D1=82=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_dlg.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/NewStory/src/history_dlg.cpp b/plugins/NewStory/src/history_dlg.cpp index e7094db113..2271835929 100644 --- a/plugins/NewStory/src/history_dlg.cpp +++ b/plugins/NewStory/src/history_dlg.cpp @@ -738,11 +738,12 @@ public: void onClick_Delete(CCtrlButton *) { - CallService(MS_HISTORY_EMPTY, m_hContact, 0); - m_histCtrl->Clear(); + if (!CallService(MS_HISTORY_EMPTY, m_hContact, 0)) { + m_histCtrl->Clear(); - UpdateTitle(); - TimeTreeBuild(); + UpdateTitle(); + TimeTreeBuild(); + } } void onClick_TimeTree(CCtrlButton *) -- cgit v1.2.3