[change] imported pick/location data now completely overwrites current

data instead of "weirdly" merging everything
This commit is contained in:
Marcel Paffrath 2019-03-12 15:14:00 +01:00
parent 02900d8c9d
commit ea07823a61

View File

@ -942,7 +942,9 @@ class MainWindow(QMainWindow):
data = Data(self, event) data = Data(self, event)
try: try:
data_new = Data(self, evtdata=str(fname)) data_new = Data(self, evtdata=str(fname))
data += data_new # MP MP uncommented because adding several picks might cause inconsistencies
data = data_new
#data += data_new
except ValueError: except ValueError:
qmb = QMessageBox(self, icon=QMessageBox.Question, qmb = QMessageBox(self, icon=QMessageBox.Question,
text='Warning: Missmatch in event identifiers {} and {}. Continue?'.format( text='Warning: Missmatch in event identifiers {} and {}. Continue?'.format(