when we change jid clear previous content in logs_liststore
This commit is contained in:
parent
cdb678ebee
commit
1e4878402e
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
## history_manager.py
|
## 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
|
## This program is free software; you can redistribute it and/or modify
|
||||||
## it under the terms of the GNU General Public License as published
|
## it under the terms of the GNU General Public License as published
|
||||||
|
@ -163,6 +163,7 @@ class HistoryManager:
|
||||||
def _fill_logs_listview(self, jid):
|
def _fill_logs_listview(self, jid):
|
||||||
'''fill the listview with all messages that user sent to or
|
'''fill the listview with all messages that user sent to or
|
||||||
received from JID'''
|
received from JID'''
|
||||||
|
self.logs_liststore.clear() # first clear the store
|
||||||
# no need to lower jid in this context as jid is already lowered
|
# no need to lower jid in this context as jid is already lowered
|
||||||
# as we use those jids from db
|
# as we use those jids from db
|
||||||
jid_id = self._get_jid_id(jid)
|
jid_id = self._get_jid_id(jid)
|
||||||
|
|
Loading…
Add table
Reference in a new issue