From 02a59f46a9d620522fc217ef112649b1ec16317a Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Wed, 31 May 2017 14:35:52 +0200 Subject: [PATCH] [bugfix] fixed filter settings for pylot.in file on open/save action in AutoPickParaBox --- QtPyLoT.py | 2 +- pylot/RELEASE-VERSION | 2 +- pylot/core/util/widgets.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index 5b3b6621..6ba71a1a 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -308,7 +308,7 @@ class MainWindow(QMainWindow): # self.createNewEvent, # QKeySequence.New, newIcon, # "Create a new event.") - self.openmanualpicksaction = self.createAction(self, "Load %manual picks ...", + self.openmanualpicksaction = self.createAction(self, "Load &manual picks ...", self.load_data, "Ctrl+M", manupicksicon, diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index dae68067..46fb43a7 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -eb5c-dirty +5897-dirty diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 6a05b411..e658d1d0 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1941,7 +1941,7 @@ class AutoPickParaBox(QtGui.QWidget): def openFile(self): fd = QtGui.QFileDialog() - fname = fd.getOpenFileName(self, 'Browse for settings file.', '*.in') + fname = fd.getOpenFileName(self, 'Browse for settings file.', filter='PyLoT input file (*.in)') if fname[0]: try: self.parameter.from_file(fname[0]) @@ -1952,7 +1952,7 @@ class AutoPickParaBox(QtGui.QWidget): def saveFile(self): fd = QtGui.QFileDialog() - fname = fd.getSaveFileName(self, 'Browse for settings file.', '*.in') + fname = fd.getSaveFileName(self, 'Browse for settings file.', filter='PyLoT input file (*.in)') if fname[0]: try: self.params_from_gui()