Fix: Set default filter of dialog to text files.
This commit is contained in:
parent
913836cac8
commit
68c5b7c830
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user