Skip to content

Commit

Permalink
fix indentation error for non-systemtray environments
Browse files Browse the repository at this point in the history
this patch by Daniel Clemente and fixes an indentation error
for non-systemtray environments.
  • Loading branch information
Kilian committed Dec 21, 2011
1 parent a3bc8da commit 3b99c65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/trimage/trimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ def add_image(self, fullpath, delegatorlist):
if image.valid:
delegatorlist.append(image)
self.imagelist.append(ImageRow(image, self.compressing_icon))
if QSystemTrayIcon.isSystemTrayAvailable() and not self.cli:
self.systemtray.trayIcon.setToolTip("Trimage image compressor (" + str(len(self.imagelist)) + " files)")
self.setWindowTitle("Trimage image compressor (" + str(len(self.imagelist)) + " files)")
if QSystemTrayIcon.isSystemTrayAvailable() and not self.cli:
self.systemtray.trayIcon.setToolTip("Trimage image compressor (" + str(len(self.imagelist)) + " files)")
self.setWindowTitle("Trimage image compressor (" + str(len(self.imagelist)) + " files)")
else:
print >> sys.stderr, u"[error] %s not a supported image file and/or not writeable" % image.fullpath

Expand Down

1 comment on commit 3b99c65

@deweydb
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bug fix should be pushed to the ubuntu package: trimage.
#36

Please sign in to comment.