[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,
|
# 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,
|
||||||
|
@ -1 +1 @@
|
|||||||
eb5c-dirty
|
5897-dirty
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user