From aa9deb6a3dab169aed9e99ad4ab72fa2462dd797 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Tue, 21 Jan 2014 10:11:55 +0200 Subject: [PATCH] 7360: disable cal switch along with OK button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As proposed by Jérôme. --- src/DateEdit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DateEdit.py b/src/DateEdit.py index c7aa2056c..2d557e786 100644 --- a/src/DateEdit.py +++ b/src/DateEdit.py @@ -331,9 +331,11 @@ class DateEditorDialog(ManagedWindow.ManagedWindow): self.validated_date = d LOG.debug("validated_date set to: {0}".format(d.dateval)) self.ok_button.set_sensitive(1) + self.calendar_box.set_sensitive(1) return True except DateError as e: self.ok_button.set_sensitive(0) + self.calendar_box.set_sensitive(0) self.statusbar.push(1, _("Correct the date or switch from `{cur_mode}' to `{text_mode}'" ).format(