Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix indentation error for non-systemtray environments

this patch by Daniel Clemente and fixes an indentation error
for non-systemtray environments.
  • Loading branch information...
commit 3b99c65a8c87aa9af4dadb109e81f917ce82186d 1 parent a3bc8da
@Kilian authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/trimage/trimage.py
View
6 src/trimage/trimage.py
@@ -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

1 comment on commit 3b99c65

@deweydb

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

Please sign in to comment.
Something went wrong with that request. Please try again.