From 68c5b7c8305772cdbd7511ec9a4f2196745cdf87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pauline=20Gom=C3=A9r?= Date: Sun, 30 Oct 2011 17:29:12 +0100 Subject: [PATCH] Fix: Set default filter of dialog to text files. --- core/reader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)