From 32547c72bfb484bac3688d13f9bfc2fe9f970ddf Mon Sep 17 00:00:00 2001 From: Kilian Valkhof Date: Tue, 2 Feb 2010 19:59:12 +0100 Subject: [PATCH] add file check to file dialog as well --- trimage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trimage.py b/trimage.py index 9b27d9a..b53ec95 100644 --- a/trimage.py +++ b/trimage.py @@ -72,7 +72,8 @@ class StartQT4(QMainWindow): "", # directory "Image files (*.png *.jpg)") for image in images: - self.compress_file(image) + if self.checkname(name): + self.compress_file(image) def enable_recompress(self):