diff --git a/src/libs/vtools/dialogs/tools/dialogcutarc.cpp b/src/libs/vtools/dialogs/tools/dialogcutarc.cpp index fd9b7dd02..7271c30c5 100644 --- a/src/libs/vtools/dialogs/tools/dialogcutarc.cpp +++ b/src/libs/vtools/dialogs/tools/dialogcutarc.cpp @@ -176,7 +176,7 @@ void DialogCutArc::ChosenObject(quint32 id, const SceneObject &type) auto *window = qobject_cast(VAbstractValApplication::VApp()->getMainWindow()); SCASSERT(window != nullptr) - connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); + connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); } } } diff --git a/src/libs/vtools/dialogs/tools/dialogcutspline.cpp b/src/libs/vtools/dialogs/tools/dialogcutspline.cpp index 4ec959573..1a33679e1 100644 --- a/src/libs/vtools/dialogs/tools/dialogcutspline.cpp +++ b/src/libs/vtools/dialogs/tools/dialogcutspline.cpp @@ -184,7 +184,7 @@ void DialogCutSpline::ChosenObject(quint32 id, const SceneObject &type) auto *window = qobject_cast(VAbstractValApplication::VApp()->getMainWindow()); SCASSERT(window != nullptr) - connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); + connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); } } } diff --git a/src/libs/vtools/dialogs/tools/dialogcutsplinepath.cpp b/src/libs/vtools/dialogs/tools/dialogcutsplinepath.cpp index 16205fe19..ffee728fb 100644 --- a/src/libs/vtools/dialogs/tools/dialogcutsplinepath.cpp +++ b/src/libs/vtools/dialogs/tools/dialogcutsplinepath.cpp @@ -184,7 +184,7 @@ void DialogCutSplinePath::ChosenObject(quint32 id, const SceneObject &type) auto *window = qobject_cast(VAbstractValApplication::VApp()->getMainWindow()); SCASSERT(window != nullptr) - connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); + connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); } } } diff --git a/src/libs/vtools/dialogs/tools/dialogellipticalarc.cpp b/src/libs/vtools/dialogs/tools/dialogellipticalarc.cpp index 418935720..95dc3d0c2 100644 --- a/src/libs/vtools/dialogs/tools/dialogellipticalarc.cpp +++ b/src/libs/vtools/dialogs/tools/dialogellipticalarc.cpp @@ -666,7 +666,7 @@ void DialogEllipticalArc::ChosenObject(quint32 id, const SceneObject &type) { auto *window = qobject_cast(VAbstractValApplication::VApp()->getMainWindow()); SCASSERT(window != nullptr) - connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); + connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); vis->VisualMode(id); } diff --git a/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp b/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp index 4a613ed3a..91f102f75 100644 --- a/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp +++ b/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp @@ -329,7 +329,7 @@ void DialogPointOfIntersectionCircles::ChosenObject(quint32 id, const SceneObjec auto *window = qobject_cast( VAbstractValApplication::VApp()->getMainWindow()); SCASSERT(window != nullptr) - connect(vis, &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); + connect(vis.data(), &Visualization::ToolTip, window, &VAbstractMainWindow::ShowToolTip); } break; case 2: