7360: disable cal switch along with OK button
As proposed by Jérôme.
This commit is contained in:
parent
50c5cd9a9a
commit
aa9deb6a3d
@ -331,9 +331,11 @@ class DateEditorDialog(ManagedWindow.ManagedWindow):
|
|||||||
self.validated_date = d
|
self.validated_date = d
|
||||||
LOG.debug("validated_date set to: {0}".format(d.dateval))
|
LOG.debug("validated_date set to: {0}".format(d.dateval))
|
||||||
self.ok_button.set_sensitive(1)
|
self.ok_button.set_sensitive(1)
|
||||||
|
self.calendar_box.set_sensitive(1)
|
||||||
return True
|
return True
|
||||||
except DateError as e:
|
except DateError as e:
|
||||||
self.ok_button.set_sensitive(0)
|
self.ok_button.set_sensitive(0)
|
||||||
|
self.calendar_box.set_sensitive(0)
|
||||||
self.statusbar.push(1,
|
self.statusbar.push(1,
|
||||||
_("Correct the date or switch from `{cur_mode}' to `{text_mode}'"
|
_("Correct the date or switch from `{cur_mode}' to `{text_mode}'"
|
||||||
).format(
|
).format(
|
||||||
|
Loading…
Reference in New Issue
Block a user