[bugfix] fixed filter settings for pylot.in file on open/save action in AutoPickParaBox

This commit is contained in:
Marcel Paffrath 2017-05-31 14:35:52 +02:00
parent 5897113140
commit 02a59f46a9
3 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -1 +1 @@
eb5c-dirty
5897-dirty

View File

@ -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()