showing status stopped if not connected

This commit is contained in:
Dimitur Kirov 2005-08-07 13:23:17 +00:00
parent 838bbfd0b7
commit 38b9b59916
1 changed files with 3 additions and 2 deletions

View File

@ -766,8 +766,6 @@ class FileTransfersTooltip(BaseTooltip):
if file_props['connected'] == False: if file_props['connected'] == False:
if file_props['completed']: if file_props['completed']:
status = 'completed' status = 'completed'
else:
status = 'stopped'
else: else:
if file_props.has_key('stopped') and \ if file_props.has_key('stopped') and \
file_props['stopped'] == True: file_props['stopped'] == True:
@ -780,6 +778,9 @@ class FileTransfersTooltip(BaseTooltip):
status = 'stalled' status = 'stalled'
else: else:
status = 'transfering' status = 'transfering'
else:
status = 'stopped'
text += status text += status
self.text_lable.set_markup(text) self.text_lable.set_markup(text)
self.hbox.add(self.text_lable) self.hbox.add(self.text_lable)