- fixed a Qt6 derived issue where dragging tabs outside the app crashed the app
This commit is contained in:
@@ -12,6 +12,7 @@ CHANGELOG for FlatCAM beta
|
|||||||
- updated the Italian translation by Massimiliano Golfetto
|
- updated the Italian translation by Massimiliano Golfetto
|
||||||
- Turkish and Chinese small updates
|
- Turkish and Chinese small updates
|
||||||
- in Preferences the language names are in the native language
|
- in Preferences the language names are in the native language
|
||||||
|
- fixed a Qt6 derived issue where dragging tabs outside the app crashed the app
|
||||||
|
|
||||||
25.08.2021
|
25.08.2021
|
||||||
|
|
||||||
|
|||||||
@@ -3245,10 +3245,9 @@ class FCDetachableTab(QtWidgets.QTabWidget):
|
|||||||
|
|
||||||
# If the current movement is a drag initiated by the left button
|
# If the current movement is a drag initiated by the left button
|
||||||
if (event.buttons() & QtCore.Qt.MouseButton.LeftButton) and self.dragInitiated and self.can_be_dragged:
|
if (event.buttons() & QtCore.Qt.MouseButton.LeftButton) and self.dragInitiated and self.can_be_dragged:
|
||||||
|
|
||||||
# Stop the move event
|
# Stop the move event
|
||||||
finishMoveEvent = QtGui.QMouseEvent(
|
finishMoveEvent = QtGui.QMouseEvent(
|
||||||
QtCore.QEvent.Type.MouseMove, event.position().toPoint(), QtCore.Qt.MouseButton.NoButton,
|
QtCore.QEvent.Type.MouseMove, event.position(), QtCore.Qt.MouseButton.NoButton,
|
||||||
QtCore.Qt.MouseButton.NoButton, QtCore.Qt.KeyboardModifier.NoModifier
|
QtCore.Qt.MouseButton.NoButton, QtCore.Qt.KeyboardModifier.NoModifier
|
||||||
)
|
)
|
||||||
QtWidgets.QTabBar.mouseMoveEvent(self, finishMoveEvent)
|
QtWidgets.QTabBar.mouseMoveEvent(self, finishMoveEvent)
|
||||||
|
|||||||
Reference in New Issue
Block a user