diff --git a/core/reader.py b/core/reader.py index d0da0c7..a22c08f 100644 --- a/core/reader.py +++ b/core/reader.py @@ -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)