get directory ready for settings

This commit is contained in:
Kilian Valkhof 2010-04-21 23:49:14 +08:00 committed by Kálmán Tarnay
parent d03c0dfbd8
commit f7988ab5bd

View file

@ -126,9 +126,11 @@ class StartQT4(QMainWindow):
def file_dialog(self):
"""Open a file dialog and send the selected images to compress_file."""
fd = QFileDialog(self)
directory = ""
images = fd.getOpenFileNames(self,
"Select one or more image files to compress",
"", # directory
directory,
# this is a fix for file dialog differentiating between cases
"Image files (*.png *.jpg *.jpeg *.PNG *.JPG *.JPEG)")