From 459d25628e8a06744ad866e3dbf10f3a29997aeb Mon Sep 17 00:00:00 2001
From: Nils <>
Date: Thu, 16 Dec 2021 20:49:01 +0100
Subject: [PATCH] Fix Track-Group PositionHandle

---
 qtgui/songeditor.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/qtgui/songeditor.py b/qtgui/songeditor.py
index af2330d..13c6616 100644
--- a/qtgui/songeditor.py
+++ b/qtgui/songeditor.py
@@ -1375,6 +1375,9 @@ class GroupLabel(QtWidgets.QGraphicsRectItem):
             role = QtGui.QPalette.Text
             self.arrowLabel.setBrush(self.parentGroupLabel.parentScene.parentView.parentMainWindow.fPalBlue.color(role))
 
+            #self.setFlag(QtWidgets.QGraphicsItem.ItemIsMovable, bool)  #!!! Prevents double click to hide.
+            #self.setFlag(QtWidgets.QGraphicsItem.ItemIsSelectable, bool)  #!!! Prevents double click to hide.
+
             self._cursorPosOnMoveStart = None
 
             self.setAcceptHoverEvents(True)
@@ -1400,7 +1403,7 @@ class GroupLabel(QtWidgets.QGraphicsRectItem):
             We don't need to worry about the user just releasing the mouse on this item"""
             self._posBeforeMove = self.parentGroupLabel.pos()
             self._cursorPosOnMoveStart = QtGui.QCursor.pos()
-            self.parentGroupLabel.mousePressEvent(event)
+            #self.parentGroupLabel.mousePressEvent(event)  #This blocks mouseMOveEvent
             #super().mousePressEvent(event) #with this in mouseMoveEvent does not work. IIRC because we do not set the movableFlag
 
         def mouseReleaseEvent(self, event):