when we change jid clear previous content in logs_liststore

This commit is contained in:
Nikos Kouremenos 2006-02-03 21:18:08 +00:00
parent cdb678ebee
commit 1e4878402e
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#! /usr/bin/env python
## history_manager.py
##
## Copyright (C) 2006 Nikos Kouremenos <nkour@jabber.org>
## Copyright (C) 2006 Nikos Kouremenos <kourem@gmail.com>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
@ -163,6 +163,7 @@ class HistoryManager:
def _fill_logs_listview(self, jid):
'''fill the listview with all messages that user sent to or
received from JID'''
self.logs_liststore.clear() # first clear the store
# no need to lower jid in this context as jid is already lowered
# as we use those jids from db
jid_id = self._get_jid_id(jid)