1
0
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:
Michail Vourlakos
2017-10-26 20:03:35 +03:00
parent 5adfe4bca3
commit 9932ae845e
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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;