summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_dlg.cpp9
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 *)