From: Mark Browning Date: Mon, 3 Aug 2009 02:22:54 +0000 (-0700) Subject: Add .JPG to list of acceptable file extensions for photos X-Git-Url: https://git.zarvox.org/?a=commitdiff_plain;h=e3538825ce3a71c6ad4ef982d706609b70054490;p=wp3.git 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. --- 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()