diff options
author | Peter Colberg <peter@colberg.org> | 2015-12-30 23:09:09 -0500 |
---|---|---|
committer | Peter Colberg <peter@colberg.org> | 2015-12-30 23:09:09 -0500 |
commit | 07991f06fe7404708a66537ad87a2f42a8f71565 (patch) | |
tree | f39096f0890e39b20c8c1a21419f5ef95fba38ff | |
parent | c0d7e4ae89989d9882152cca4e539dec01d23f13 (diff) | |
download | twinkle-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.
-rw-r--r-- | src/gui/historyform.cpp | 2 |
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); |