[Bugfix] Enable compare button only, if manual as well as automatic picks are available.

This commit is contained in:
Ludger Küperkoch 2017-08-16 10:52:46 +02:00
parent e3f758fa63
commit 8d36393e36

View File

@ -1476,6 +1476,7 @@ class MainWindow(QMainWindow):
self.locateEvent.setEnabled(True) self.locateEvent.setEnabled(True)
if event.pylot_autopicks: if event.pylot_autopicks:
self.drawPicks(picktype='auto') self.drawPicks(picktype='auto')
if event.pylot_picks and event.pylot_autopicks:
self.compare_action.setEnabled(True) self.compare_action.setEnabled(True)
self.draw() self.draw()