[bugfix] autoPickWidget not enabled again after Error

This commit is contained in:
Marcel Paffrath 2018-06-05 14:24:00 +02:00
parent d57c193a0b
commit cbba41f16a

View File

@ -2457,6 +2457,7 @@ class MainWindow(QMainWindow):
self.mp_worker.signals.message.connect(self.addListItem)
self.mp_worker.signals.result.connect(self.finalizeAutoPick)
self.mp_worker.signals.finished.connect(self.enableAutoPickWidget)
self.mp_thread.start(self.mp_worker)
@ -2471,7 +2472,6 @@ class MainWindow(QMainWindow):
self.apd_sge.show()
def finalizeAutoPick(self, result):
self.apw.enable(True)
if result:
self.init_canvas_dict_wadatijack()
for eventID in result.keys():
@ -2487,6 +2487,9 @@ class MainWindow(QMainWindow):
self.drawPicks(picktype='auto')
self.draw()
def enableAutoPickWidget(self, event=None):
self.apw.enable(True)
def get_event_from_id(self, eventID):
for event in self.project.eventlist:
if event.pylot_id == eventID: