From 9b71c68ae397e5760ba78c5c1b976e01fbb084cb Mon Sep 17 00:00:00 2001 From: Nils Date: Mon, 25 Jul 2022 01:07:58 +0200 Subject: [PATCH] Fix crash when trying to edit a hidden track in the track editor --- qtgui/scorescene.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qtgui/scorescene.py b/qtgui/scorescene.py index 264ea60..4f33db4 100644 --- a/qtgui/scorescene.py +++ b/qtgui/scorescene.py @@ -109,7 +109,8 @@ class GuiScore(QtWidgets.QGraphicsScene): def updateModeSingleTrackRedraw(self, nameAsString:str, trackId:int, trackExport:tuple): """trackExport is a tuple of block export dicts""" - self.tracks[trackId].updateMode(nameAsString) + if trackId in self.tracks: #is visible? + self.tracks[trackId].updateMode(nameAsString) def maxTrackLength(self): if self.tracks: