]> git.zarvox.org Git - wp3.git/commitdiff
Add .JPG to list of acceptable file extensions for photos
authorMark Browning <mabrowningrr@gmail.com>
Mon, 3 Aug 2009 02:22:54 +0000 (19:22 -0700)
committerDrew Fisher <drew.m.fisher@gmail.com>
Mon, 3 Aug 2009 02:28:59 +0000 (19:28 -0700)
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

index fb62efb8f9edf034e6062c26c5efc8e2689bea80..3aaf1a508110d1ff1679ab404e1eb81735f66f21 100644 (file)
@@ -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()