summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-10-28 22:52:43 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-10-28 22:52:43 +0100
commit4ee82f29f045300268f4bbc0a100c8ed90d15c5f (patch)
tree2bf3d1a76f824cfe83208bac136bda9568c33926
parentab6bf14e0d7a5e157902c0dbf94ec27bafba2b27 (diff)
downloadportato-4ee82f29f045300268f4bbc0a100c8ed90d15c5f.tar.gz
portato-4ee82f29f045300268f4bbc0a100c8ed90d15c5f.tar.bz2
portato-4ee82f29f045300268f4bbc0a100c8ed90d15c5f.zip
Do not insert empty lines before expanded useflags in the queue tooltip, if there are no other useflags
Diffstat (limited to '')
-rw-r--r--portato/gui/windows/main.py5
1 files changed, 4 insertions, 1 deletions
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+"<i>- %s</i>" % ("\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 != ""