From 3b99c65a8c87aa9af4dadb109e81f917ce82186d Mon Sep 17 00:00:00 2001 From: Kilian Valkhof Date: Wed, 21 Dec 2011 11:02:13 +0100 Subject: [PATCH] fix indentation error for non-systemtray environments this patch by Daniel Clemente and fixes an indentation error for non-systemtray environments. --- src/trimage/trimage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/trimage/trimage.py b/src/trimage/trimage.py index fc71d19..84b13a0 100644 --- a/src/trimage/trimage.py +++ b/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