diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-15 10:49:37 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-15 10:49:37 +0300 |
commit | 19430e9bb2857cb136c07df0f4aed88da0ac592c (patch) | |
tree | 08a5b7ccf7788b566ae1b8e70ec7c28d98ab6f6c /plugins | |
parent | 6471ea7eb9980bc55ad79a7f5ca622633a88bbb3 (diff) |
fixes #3924 (NewStory: при отказе удалять историю содержимое истории пропадает )
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history_dlg.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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 *) |