diff --git a/PyLoT.py b/PyLoT.py index fdaae6b4..343ffe99 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -3311,7 +3311,6 @@ class MainWindow(QMainWindow): event.dirty = False self.tabs.setCurrentIndex(0) # implemented to prevent double-loading of waveform data self.init_events(new=True) - self.setDirty(False) self.init_metadata() message = 'Opened project file {}.'.format(fnm) @@ -3321,6 +3320,7 @@ class MainWindow(QMainWindow): self.init_array_tab() self.set_metadata() self.add2recentProjects(fnm) + self.setDirty(False) def add2recentProjects(self, fnm): settings = QtCore.QSettings() diff --git a/pylot/core/util/array_map.py b/pylot/core/util/array_map.py index ab4923c6..981f4f2b 100644 --- a/pylot/core/util/array_map.py +++ b/pylot/core/util/array_map.py @@ -88,6 +88,7 @@ class Array_map(QtGui.QWidget): raise TypeError('Unknown "picker" {}'.format(picker)) print(message) pyl_mw = self._parent + pyl_mw.addPicks(station, {}, type=picker) pyl_mw.setDirty(True) pyl_mw.update_status(message) self._refresh_drawings() diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 42339f34..a2f1cd68 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1619,7 +1619,7 @@ class PickDlg(QDialog): print('Warning: Could not init expected picks from taup: {}'.format(e)) self.activateArrivalsButton(False) - # init pick delete (with right click) + # init pick delete (with middle mouse click) self.connect_pick_delete() self.connect_mouse_motion() self.setWindowTitle('Pickwindow on station: {}'.format(self.getStation())) @@ -2673,7 +2673,7 @@ class PickDlg(QDialog): if pick_rel is None: return # delete the value from corresponding dictionary - allpicks[picktype].pop(phase) + removed_pick = allpicks[picktype].pop(phase) # delete line from vlines dictionary if phase in self.phaseLines.keys(): del (self.phaseLines[phase])