1

Fix: Set default filter of dialog to text files.

This commit is contained in:
Pauline Gomér 2011-10-30 17:29:12 +01:00
parent 913836cac8
commit 68c5b7c830

View File

@ -165,7 +165,8 @@ class MainWindowReader(QtGui.QMainWindow, Ui_MainWindowReader):
filename = QtGui.QFileDialog.getOpenFileName(
parent=self,
caption='Select a file to open',
filter='Archive files (*.bz2 *.gz *.tar *.tgz);;Text files (*.txt);;All files (*.*)'
filter='Archive files (*.bz2 *.gz *.tar *.tgz);;Text files (*.txt);;All files (*.*)',
selectedFilter='Text files (*.txt)'
)
if not filename.isNull():
self.openFile(filename)