[bugfix] Strip star from event path when getting text from eventBox

See https://ariadne.geophysik.ruhr-uni-bochum.de/trac/PyLoT/ticket/264
This commit is contained in:
Darius Arnold 2018-12-07 12:47:06 +01:00
parent 2a22409145
commit f892225229

View File

@ -3401,6 +3401,9 @@ class TuneAutopicker(QWidget):
def get_current_event(self): def get_current_event(self):
path = self.eventBox.currentText() path = self.eventBox.currentText()
# the path sometimes contains the star that shows that the event has been modified
# It would be cleaner to find out why/where the star is added to the eventbox and make this a visual only effect
if path[-1] == "*" : path = path[:-1]
return self.parent().project.getEventFromPath(path) return self.parent().project.getEventFromPath(path)
def get_current_event_name(self): def get_current_event_name(self):