changeset 0d5db6a6a42a in tryton:6.4
details: https://hg.tryton.org/tryton?cmd=changeset&node=0d5db6a6a42a
description:
Do not display empty message in info bar
issue11569
review419351003
(grafted from 76e38f53400fa05af163bcf5e9b4c22f0078f33b)
diffstat:
tryton/gui/window/infobar.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 96ffb3785b46 -r 0d5db6a6a42a tryton/gui/window/infobar.py
--- a/tryton/gui/window/infobar.py Tue Jun 21 10:15:13 2022 +0200
+++ b/tryton/gui/window/infobar.py Tue Jun 21 10:18:23 2022 +0200
@@ -15,6 +15,8 @@
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()