From 8e6cdfda4be4c68f523e9168016ea1290118cf65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 1 Jun 2015 22:44:57 +0200 Subject: [PATCH] Set missing transient to calendar popup The transient is set just before the popup is shown as the calendar widget could have changed of toplevel in the meanwhile. issue4769 review13171002 --- tryton/common/datetime_.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tryton/common/datetime_.py b/tryton/common/datetime_.py index a6765c6be7..b1507c4619 100644 --- a/tryton/common/datetime_.py +++ b/tryton/common/datetime_.py @@ -106,6 +106,7 @@ class Date(gtk.Entry): self.__calendar.select_month( self.__date.month - 1, self.__date.year) self.__calendar.select_day(self.__date.day) + self.__cal_popup.set_transient_for(self.get_toplevel()) popup_position(self, self.__cal_popup) popup_show(self.__cal_popup)