[bugfix] fixed filter settings for pylot.in file on open/save action in AutoPickParaBox
This commit is contained in:
parent
5897113140
commit
02a59f46a9
@ -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,
|
||||
|
@ -1 +1 @@
|
||||
eb5c-dirty
|
||||
5897-dirty
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user