fix indentation error for non-systemtray environments

this patch by Daniel Clemente and fixes an indentation error
for non-systemtray environments.
This commit is contained in:
Kilian Valkhof 2011-12-21 11:02:13 +01:00
parent a3bc8da5e6
commit 3b99c65a8c

View file

@ -210,9 +210,9 @@ class StartQT4(QMainWindow):
if image.valid: if image.valid:
delegatorlist.append(image) delegatorlist.append(image)
self.imagelist.append(ImageRow(image, self.compressing_icon)) self.imagelist.append(ImageRow(image, self.compressing_icon))
if QSystemTrayIcon.isSystemTrayAvailable() and not self.cli: if QSystemTrayIcon.isSystemTrayAvailable() and not self.cli:
self.systemtray.trayIcon.setToolTip("Trimage image compressor (" + str(len(self.imagelist)) + " files)") self.systemtray.trayIcon.setToolTip("Trimage image compressor (" + str(len(self.imagelist)) + " files)")
self.setWindowTitle("Trimage image compressor (" + str(len(self.imagelist)) + " files)") self.setWindowTitle("Trimage image compressor (" + str(len(self.imagelist)) + " files)")
else: else:
print >> sys.stderr, u"[error] %s not a supported image file and/or not writeable" % image.fullpath print >> sys.stderr, u"[error] %s not a supported image file and/or not writeable" % image.fullpath