summaryrefslogtreecommitdiffstats
path: root/src/gui/historyform.cpp
diff options
context:
space:
mode:
authorPeter Colberg <peter@colberg.org>2015-12-30 23:09:09 -0500
committerPeter Colberg <peter@colberg.org>2015-12-30 23:09:09 -0500
commit07991f06fe7404708a66537ad87a2f42a8f71565 (patch)
treef39096f0890e39b20c8c1a21419f5ef95fba38ff /src/gui/historyform.cpp
parentc0d7e4ae89989d9882152cca4e539dec01d23f13 (diff)
downloadtwinkle-07991f06fe7404708a66537ad87a2f42a8f71565.tar
twinkle-07991f06fe7404708a66537ad87a2f42a8f71565.tar.gz
twinkle-07991f06fe7404708a66537ad87a2f42a8f71565.tar.lz
twinkle-07991f06fe7404708a66537ad87a2f42a8f71565.tar.xz
twinkle-07991f06fe7404708a66537ad87a2f42a8f71565.zip
historyform: Clear rows before loading history
This avoids spurious entries when deselecting both incoming and outgoing calls.
Diffstat (limited to 'src/gui/historyform.cpp')
-rw-r--r--src/gui/historyform.cpp2
1 files changed, 2 insertions, 0 deletions
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<t_call_record> history;
call_history->get_history(history);