parent
64f0d13449
commit
541d3d2eac
|
@ -123,7 +123,10 @@ void DialogAlongLine::DeployFormulaTextEdit()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogAlongLine::~DialogAlongLine()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -117,7 +117,10 @@ void DialogArc::DeployF2TextEdit()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogArc::~DialogArc()
|
||||
{
|
||||
delete path;
|
||||
if (qApp->getCurrentScene()->items().contains(path))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete path;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -132,7 +132,10 @@ void DialogBisector::DeployFormulaTextEdit()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogBisector::~DialogBisector()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,10 @@ DialogCurveIntersectAxis::DialogCurveIntersectAxis(const VContainer *data, const
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogCurveIntersectAxis::~DialogCurveIntersectAxis()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,10 @@ void DialogCutArc::DeployFormulaTextEdit()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogCutArc::~DialogCutArc()
|
||||
{
|
||||
delete path;
|
||||
if (qApp->getCurrentScene()->items().contains(path))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete path;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,10 @@ DialogCutSpline::DialogCutSpline(const VContainer *data, const quint32 &toolId,
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogCutSpline::~DialogCutSpline()
|
||||
{
|
||||
delete path;
|
||||
if (qApp->getCurrentScene()->items().contains(path))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete path;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,10 @@ DialogCutSplinePath::DialogCutSplinePath(const VContainer *data, const quint32 &
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogCutSplinePath::~DialogCutSplinePath()
|
||||
{
|
||||
delete path;
|
||||
if (qApp->getCurrentScene()->items().contains(path))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete path;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -302,6 +302,9 @@ void DialogEndLine::closeEvent(QCloseEvent *event)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogEndLine::~DialogEndLine()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
|
|
@ -69,7 +69,10 @@ DialogHeight::DialogHeight(const VContainer *data, const quint32 &toolId, QWidge
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogHeight::~DialogHeight()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,10 @@ DialogLine::DialogLine(const VContainer *data, const quint32 &toolId, QWidget *p
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogLine::~DialogLine()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,10 @@ DialogLineIntersect::DialogLineIntersect(const VContainer *data, const quint32 &
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogLineIntersect::~DialogLineIntersect()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,10 @@ DialogLineIntersectAxis::DialogLineIntersectAxis(const VContainer *data, const q
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogLineIntersectAxis::~DialogLineIntersectAxis()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -120,7 +120,10 @@ void DialogNormal::DeployFormulaTextEdit()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogNormal::~DialogNormal()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -96,7 +96,10 @@ DialogPointOfContact::DialogPointOfContact(const VContainer *data, const quint32
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogPointOfContact::~DialogPointOfContact()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,10 @@ DialogPointOfIntersection::DialogPointOfIntersection(const VContainer *data, con
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogPointOfIntersection::~DialogPointOfIntersection()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -131,7 +131,10 @@ void DialogShoulderPoint::DeployFormulaTextEdit()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogShoulderPoint::~DialogShoulderPoint()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,10 @@ DialogSpline::DialogSpline(const VContainer *data, const quint32 &toolId, QWidge
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogSpline::~DialogSpline()
|
||||
{
|
||||
delete path;
|
||||
if (qApp->getCurrentScene()->items().contains(path))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete path;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,10 @@ DialogSplinePath::DialogSplinePath(const VContainer *data, const quint32 &toolId
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogSplinePath::~DialogSplinePath()
|
||||
{
|
||||
delete visPath;
|
||||
if (qApp->getCurrentScene()->items().contains(visPath))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete visPath;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,10 @@ DialogTriangle::DialogTriangle(const VContainer *data, const quint32 &toolId, QW
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
DialogTriangle::~DialogTriangle()
|
||||
{
|
||||
delete line;
|
||||
if (qApp->getCurrentScene()->items().contains(line))
|
||||
{ // In some cases scene delete object yourself. If not make check program will crash.
|
||||
delete line;
|
||||
}
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user