Trying to prevent a crash.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-03-22 17:03:20 +02:00
parent 573e20f12d
commit 08bf90bf48

View File

@ -187,7 +187,7 @@ inline void VAbstractTool::AddVisualization()
connect(scene, &VMainGraphicsScene::NewFactor, visual, &Visualization::SetFactor); connect(scene, &VMainGraphicsScene::NewFactor, visual, &Visualization::SetFactor);
scene->addItem(visual); scene->addItem(visual);
connect(visual, &Visualization::ToolTip, [this] (const QString &toolTip) {emit ToolTip(toolTip);}); connect(visual, &Visualization::ToolTip, RECEIVER(this)[this] (const QString &toolTip) {emit ToolTip(toolTip);});
vis = visual; vis = visual;
} }