From f892225229ac106cc1d92e6110c94ef4d2c8cf05 Mon Sep 17 00:00:00 2001 From: Darius Arnold Date: Fri, 7 Dec 2018 12:47:06 +0100 Subject: [PATCH] [bugfix] Strip star from event path when getting text from eventBox See https://ariadne.geophysik.ruhr-uni-bochum.de/trac/PyLoT/ticket/264 --- pylot/core/util/widgets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 61e4cd2e..69a17b3c 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -3401,6 +3401,9 @@ class TuneAutopicker(QWidget): def get_current_event(self): 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) def get_current_event_name(self):