From e3538825ce3a71c6ad4ef982d706609b70054490 Mon Sep 17 00:00:00 2001 From: Mark Browning Date: Sun, 2 Aug 2009 19:22:54 -0700 Subject: [PATCH] Add .JPG to list of acceptable file extensions for photos Apparently, unlike every other file chooser out there, the Gnome file chooser is case-sensitive, and many cameras leave photos with capitalized filenames. --- editperson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editperson.py b/editperson.py index fb62efb..3aaf1a5 100644 --- a/editperson.py +++ b/editperson.py @@ -272,7 +272,7 @@ class EditPerson(QWidget): self.savePressed() self.closePressed() def changePhoto(self): - fileName = QFileDialog.getOpenFileName(self, "Select Photo", ".", "Images (*.jpg *.png)" ) + fileName = QFileDialog.getOpenFileName(self, "Select Photo", ".", "Images (*.jpg *.JPG *.png)" ) if not fileName.isEmpty(): print "opening", fileName self.currentimage = QImage() -- 2.39.2