Fix a little bug in [1861]: now countdown starts immediately

This commit is contained in:
Julien Pivotto 2007-05-19 18:04:56 +00:00
parent 93358d1b09
commit 241a0f3fda
1 changed files with 1 additions and 0 deletions

View File

@ -372,6 +372,7 @@ class ChangeStatusMessageDialog:
'''Wait for OK or Cancel button to be pressed and return status messsage '''Wait for OK or Cancel button to be pressed and return status messsage
(None if users pressed Cancel or x button of WM''' (None if users pressed Cancel or x button of WM'''
if self.countdown_time > 0: if self.countdown_time > 0:
self.countdown()
gobject.timeout_add(1000, self.countdown) gobject.timeout_add(1000, self.countdown)
rep = self.window.run() rep = self.window.run()
if rep == gtk.RESPONSE_OK: if rep == gtk.RESPONSE_OK: