From 07991f06fe7404708a66537ad87a2f42a8f71565 Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Wed, 30 Dec 2015 23:09:09 -0500 Subject: historyform: Clear rows before loading history This avoids spurious entries when deselecting both incoming and outgoing calls. --- src/gui/historyform.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/historyform.cpp') diff --git a/src/gui/historyform.cpp b/src/gui/historyform.cpp index 1466110..15b882a 100644 --- a/src/gui/historyform.cpp +++ b/src/gui/historyform.cpp @@ -125,6 +125,8 @@ void HistoryForm::loadHistory() unsigned long totalCallDuration = 0; unsigned long totalConversationDuration = 0; + m_model->setRowCount(0); + std::list history; call_history->get_history(history); -- cgit v1.2.3