'fix' for case sensitive file dialog

This commit is contained in:
Kilian Valkhof 2010-02-03 13:19:29 +01:00
parent 68ade9ba2e
commit 1e7874636e
3 changed files with 3 additions and 5 deletions

5
todo
View file

@ -23,11 +23,8 @@ optipng for png and gif, jpegoptim for jpeg. both are available in ubuntu as dep
==========================================
todo app wise
- implement drag and drop on table
- implement threading (and include advpng then)
- implement threading
- errors need to go to standarderror
- implement a case insensitive file dialog open
^ we can do this, but this is only needed for linux. for now lets just add uppercase equivalents
- make icon
todo else

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Before After
Before After

View file

@ -96,7 +96,8 @@ class StartQT4(QMainWindow):
images = fd.getOpenFileNames(self,
"Select one or more image files to compress",
"", # directory
"Image files (*.png *.jpg *.jpeg)")
# this is a fix for file dialog differenciating between cases
"Image files (*.png *.jpg *.jpeg *.PNG *.JPG *.JPEG)")
for image in images:
if self.checkname(image):
self.compress_file(image)