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:
1 parent
2a0b090a32
commit
bb12565cf8
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user