Fix time widget to display 00:00

time(0, 0) is evaluated to False so the test for None must be explicit
to set correctly 00:00.

issue4969
review22501002
This commit is contained in:
Cédric Krier committed 2015-10-03 11:57:11 +02:00
1 parent 2a0b090a32
commit bb12565cf8
1 file changed
+1 -1
+1 -1
View File
@@ -275,7 +275,7 @@ class Time(gtk.ComboBoxEntry):
self.__time = time
def update_label(self):
if not self.__time:
if self.__time is None:
self.__entry.set_text('')
return