Bugfix: Infinite call loop created by shared scene in destination and outputwindow canvases and the updateCanvas() slot.

This commit is contained in:
Tats
2015-07-03 19:01:51 -06:00
parent f0c4bb1fa9
commit 9ba817847f
+4 -17
View File
@@ -984,26 +984,13 @@ void MainWindow::createLayout()
outputWindow = new OutputGLWindow(destinationCanvas);
outputWindow->setVisible(true);
// Source changed -> change destination
// connect(sourceCanvas, SIGNAL(shapeChanged(MShape*)),
// destinationCanvas, SLOT(updateCanvas()));
// Source scene changed -> change destination.
connect(sourceCanvas->scene(), SIGNAL(changed(const QList<QRectF>&)),
destinationCanvas, SLOT(updateCanvas()));
// Source changed -> change output window
// connect(sourceCanvas, SIGNAL(shapeChanged(MShape*)),
// outputWindow->getCanvas(), SLOT(updateCanvas()));
connect(sourceCanvas->scene(), SIGNAL(changed(const QList<QRectF>&)),
outputWindow->getCanvas(), SLOT(updateCanvas()));
// Destination changed -> change output window
// connect(destinationCanvas, SIGNAL(shapeChanged(MShape*)),
// outputWindow->getCanvas(), SLOT(updateCanvas()));
destinationCanvas, SLOT(update()));
// Destination scene changed -> change output window.
connect(destinationCanvas->scene(), SIGNAL(changed(const QList<QRectF>&)),
outputWindow->getCanvas(), SLOT(updateCanvas()));
outputWindow->getCanvas(), SLOT(update()));
// Output changed -> change destinatioin
// XXX si je decommente cette ligne alors quand je clique sur ajouter media ca gele...