[bugfix] information about deleted picks was not transferred to the
current event, thus not saved
This commit is contained in:
parent
f0e2fdb470
commit
16b469ff67
2
PyLoT.py
2
PyLoT.py
@ -3311,7 +3311,6 @@ class MainWindow(QMainWindow):
|
|||||||
event.dirty = False
|
event.dirty = False
|
||||||
self.tabs.setCurrentIndex(0) # implemented to prevent double-loading of waveform data
|
self.tabs.setCurrentIndex(0) # implemented to prevent double-loading of waveform data
|
||||||
self.init_events(new=True)
|
self.init_events(new=True)
|
||||||
self.setDirty(False)
|
|
||||||
self.init_metadata()
|
self.init_metadata()
|
||||||
|
|
||||||
message = 'Opened project file {}.'.format(fnm)
|
message = 'Opened project file {}.'.format(fnm)
|
||||||
@ -3321,6 +3320,7 @@ class MainWindow(QMainWindow):
|
|||||||
self.init_array_tab()
|
self.init_array_tab()
|
||||||
self.set_metadata()
|
self.set_metadata()
|
||||||
self.add2recentProjects(fnm)
|
self.add2recentProjects(fnm)
|
||||||
|
self.setDirty(False)
|
||||||
|
|
||||||
def add2recentProjects(self, fnm):
|
def add2recentProjects(self, fnm):
|
||||||
settings = QtCore.QSettings()
|
settings = QtCore.QSettings()
|
||||||
|
@ -88,6 +88,7 @@ class Array_map(QtGui.QWidget):
|
|||||||
raise TypeError('Unknown "picker" {}'.format(picker))
|
raise TypeError('Unknown "picker" {}'.format(picker))
|
||||||
print(message)
|
print(message)
|
||||||
pyl_mw = self._parent
|
pyl_mw = self._parent
|
||||||
|
pyl_mw.addPicks(station, {}, type=picker)
|
||||||
pyl_mw.setDirty(True)
|
pyl_mw.setDirty(True)
|
||||||
pyl_mw.update_status(message)
|
pyl_mw.update_status(message)
|
||||||
self._refresh_drawings()
|
self._refresh_drawings()
|
||||||
|
@ -1619,7 +1619,7 @@ class PickDlg(QDialog):
|
|||||||
print('Warning: Could not init expected picks from taup: {}'.format(e))
|
print('Warning: Could not init expected picks from taup: {}'.format(e))
|
||||||
self.activateArrivalsButton(False)
|
self.activateArrivalsButton(False)
|
||||||
|
|
||||||
# init pick delete (with right click)
|
# init pick delete (with middle mouse click)
|
||||||
self.connect_pick_delete()
|
self.connect_pick_delete()
|
||||||
self.connect_mouse_motion()
|
self.connect_mouse_motion()
|
||||||
self.setWindowTitle('Pickwindow on station: {}'.format(self.getStation()))
|
self.setWindowTitle('Pickwindow on station: {}'.format(self.getStation()))
|
||||||
@ -2673,7 +2673,7 @@ class PickDlg(QDialog):
|
|||||||
if pick_rel is None:
|
if pick_rel is None:
|
||||||
return
|
return
|
||||||
# delete the value from corresponding dictionary
|
# delete the value from corresponding dictionary
|
||||||
allpicks[picktype].pop(phase)
|
removed_pick = allpicks[picktype].pop(phase)
|
||||||
# delete line from vlines dictionary
|
# delete line from vlines dictionary
|
||||||
if phase in self.phaseLines.keys():
|
if phase in self.phaseLines.keys():
|
||||||
del (self.phaseLines[phase])
|
del (self.phaseLines[phase])
|
||||||
|
Loading…
Reference in New Issue
Block a user