changeset efed57f8b0bd in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset&node=efed57f8b0bd
description:
Do not stop edition of CellRendererDate when calendar popup is visible
issue10443
review351981002
diffstat:
tryton/common/datetime_.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r 8d3c52dc5e69 -r efed57f8b0bd tryton/common/datetime_.py
--- a/tryton/common/datetime_.py Wed May 19 15:41:39 2021 +0200
+++ b/tryton/common/datetime_.py Wed May 26 23:45:27 2021 +0200
@@ -172,6 +172,9 @@
self.grab_focus()
self.emit('date-changed')
+ def cal_popup_is_visible(self):
+ return self.__cal_popup.is_visible()
+
def focus_out(self, entry, event):
previous_date = self.__date
self.parse()
@@ -266,6 +269,8 @@
# TODO emit edited
def __focus_out_event(self, entry, event):
+ if entry.cal_popup_is_visible():
+ return True
entry.props.editing_canceled = True
entry.editing_done()
entry.remove_widget()