mirror of
https://github.com/KDE/latte-dock.git
synced 2025-08-15 21:49:28 +03:00
fix #730,crash introduced at qt 5.9.2
--move the release of signals manual bindings for tasks delegates from onRemove event of the delegate at Component.onDestruction. The crash was happening when the code path(onRemove event) wasnt occuring, so the bindings werent released.
This commit is contained in:
@ -1232,8 +1232,14 @@ MouseArea{
|
||||
}
|
||||
|
||||
Component.onDestruction: {
|
||||
wrapper.sendEndOfNeedBothAxisAnimation();
|
||||
root.waitingLauncherRemoved.disconnect(slotWaitingLauncherRemoved);
|
||||
root.draggingFinished.disconnect(handlerDraggingFinished);
|
||||
root.clearZoomSignal.disconnect(clearZoom);
|
||||
root.publishTasksGeometries.disconnect(slotPublishGeometries);
|
||||
root.showPreviewForTasks.disconnect(slotShowPreviewForTasks);
|
||||
root.updateScale.disconnect(wrapper.signalUpdateScale);
|
||||
|
||||
wrapper.sendEndOfNeedBothAxisAnimation();
|
||||
}
|
||||
|
||||
/////Animations
|
||||
|
@ -41,12 +41,6 @@ SequentialAnimation {
|
||||
|
||||
ScriptAction{
|
||||
script:{
|
||||
root.draggingFinished.disconnect(handlerDraggingFinished);
|
||||
root.clearZoomSignal.disconnect(clearZoom);
|
||||
root.publishTasksGeometries.disconnect(slotPublishGeometries);
|
||||
root.showPreviewForTasks.disconnect(slotShowPreviewForTasks);
|
||||
root.updateScale.disconnect(wrapper.signalUpdateScale);
|
||||
|
||||
mainItemContainer.inAnimation = true;
|
||||
icList.delayingRemoval = true;
|
||||
mainItemContainer.inAddRemoveAnimation = true;
|
||||
|
Reference in New Issue
Block a user