From cc002c946017cf6943eb6524dc5f3fafd4b32f83 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Mon, 23 Feb 2015 14:35:00 +0100 Subject: [PATCH] bugfix: wrong return type expectation corrected --- QtPyLoT.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index bedca1c7..707f772b 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -265,10 +265,10 @@ class MainWindow(QMainWindow): filt = "Supported event formats (*.mat *.qml *.xml " \ "*.kor *.evt)" caption = 'Select event to open' - fname, = QFileDialog().getOpenFileName(self, + fname = QFileDialog().getOpenFileName(self, caption=caption, filter=filt) - self.fname = fname + self.fname = fname[0] else: self.fname = unicode(action.data().toString()) if not self.okToContinue():