From 4ee82f29f045300268f4bbc0a100c8ed90d15c5f Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 28 Oct 2008 22:52:43 +0100 Subject: Do not insert empty lines before expanded useflags in the queue tooltip, if there are no other useflags --- portato/gui/windows/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index eaed760..562e603 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -1363,7 +1363,10 @@ class MainWindow (Window): string = string+"- %s" % ("\n- ".join(disabled),) if expanded: - string = string+"\n\n"+"\n".join(expanded) + if string: + string += "\n\n" + + string += "\n".join(expanded) tooltip.set_markup(string) return string != "" -- cgit v1.2.3-70-g09d2