From f79bd986bf0ac385a7d22eba0ef46e73d942017c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 7 Nov 2012 12:42:49 +0100 Subject: [PATCH] Don't open calendar if DateEntry is not editable (transplanted from ad9c8341d2eef843a1f5046f23967e05e7f65d44) --- tryton/common/date_widget.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tryton/common/date_widget.py b/tryton/common/date_widget.py index 7a26a9d0e7..54d8ea97de 100644 --- a/tryton/common/date_widget.py +++ b/tryton/common/date_widget.py @@ -266,6 +266,8 @@ class DateEntry(gtk.Entry): return False def cal_open(self, *args): + if not self.get_editable(): + return False parent = self.get_toplevel() dialog = gtk.Dialog(_('Date Selection'), parent, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,