fix checkname function

This commit is contained in:
Kilian Valkhof 2010-02-02 21:05:16 +01:00
parent 912f7ab7ef
commit 9fa487deca
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 678 B

After

Width:  |  Height:  |  Size: 676 B

Before After
Before After

View file

@ -69,7 +69,7 @@ class StartQT4(QMainWindow):
print("booya")
def checkname(self, filename):
if path.splitext(filename)[1].lower() in ["jpg", "jpeg", "png"]:
if path.splitext(str(filename))[1].lower() in [".jpg", ".jpeg", ".png"]:
return True
def file_dialog(self):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Before After
Before After