Fixed bug that presented text from the wrong tweets sometimes

This commit is contained in:
Anna 2010-05-17 22:32:36 -04:00
parent 28053d3961
commit f85189712b
2 changed files with 6 additions and 0 deletions

1
TODO
View File

@ -15,3 +15,4 @@ bugs:
* Direct Messages have no names, only screen names (may not be fixable without
considerable tweaks to python-twitter)
* New posts sometimes inherit 'in reply to' text of old posts

View File

@ -313,6 +313,9 @@ class TweetBox(gtk.HBox):
def set_status(self, status, read=True):
# To avoid leftover data when reusing
self.clear_status()
# Set avatar
try:
with AvCache().lock:
@ -361,6 +364,8 @@ class TweetBox(gtk.HBox):
self.screen_name = None
self.id = None
self.set_read(True)
self.reply_to_button.set_label('')
self.avatar.hide()
def set_read(self, read=True):