[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, # self.createNewEvent,
# QKeySequence.New, newIcon, # QKeySequence.New, newIcon,
# "Create a new event.") # "Create a new event.")
self.openmanualpicksaction = self.createAction(self, "Load %manual picks ...", self.openmanualpicksaction = self.createAction(self, "Load &manual picks ...",
self.load_data, self.load_data,
"Ctrl+M", "Ctrl+M",
manupicksicon, manupicksicon,

View File

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

View File

@ -1941,7 +1941,7 @@ class AutoPickParaBox(QtGui.QWidget):
def openFile(self): def openFile(self):
fd = QtGui.QFileDialog() 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]: if fname[0]:
try: try:
self.parameter.from_file(fname[0]) self.parameter.from_file(fname[0])
@ -1952,7 +1952,7 @@ class AutoPickParaBox(QtGui.QWidget):
def saveFile(self): def saveFile(self):
fd = QtGui.QFileDialog() 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]: if fname[0]:
try: try:
self.params_from_gui() self.params_from_gui()