From 3e6f93d38cfac9750c55ddb47fd167ccb895ff8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 21 Jun 2022 10:18:23 +0200 Subject: [PATCH] Do not display empty message in info bar issue11569 review419351003 --- tryton/gui/window/infobar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tryton/gui/window/infobar.py b/tryton/gui/window/infobar.py index 67ba14e43e..4293d70787 100644 --- a/tryton/gui/window/infobar.py +++ b/tryton/gui/window/infobar.py @@ -15,6 +15,8 @@ class InfoBar(object): return self.__box def info_bar_add(self, message, type_=Gtk.MessageType.ERROR): + if not message: + return key = (message, type_) if key not in self.__messages: info_bar = Gtk.InfoBar()