Fixed issue #214.

--HG--
branch : develop
This commit is contained in:
dismine 2014-12-26 15:56:07 +02:00
parent 64f0d13449
commit 541d3d2eac
19 changed files with 76 additions and 19 deletions

View File

@ -123,7 +123,10 @@ void DialogAlongLine::DeployFormulaTextEdit()
//---------------------------------------------------------------------------------------------------------------------
DialogAlongLine::~DialogAlongLine()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -117,7 +117,10 @@ void DialogArc::DeployF2TextEdit()
//---------------------------------------------------------------------------------------------------------------------
DialogArc::~DialogArc()
{
if (qApp->getCurrentScene()->items().contains(path))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete path;
}
delete ui;
}

View File

@ -132,7 +132,10 @@ void DialogBisector::DeployFormulaTextEdit()
//---------------------------------------------------------------------------------------------------------------------
DialogBisector::~DialogBisector()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -72,7 +72,10 @@ DialogCurveIntersectAxis::DialogCurveIntersectAxis(const VContainer *data, const
//---------------------------------------------------------------------------------------------------------------------
DialogCurveIntersectAxis::~DialogCurveIntersectAxis()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -97,7 +97,10 @@ void DialogCutArc::DeployFormulaTextEdit()
//---------------------------------------------------------------------------------------------------------------------
DialogCutArc::~DialogCutArc()
{
if (qApp->getCurrentScene()->items().contains(path))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete path;
}
delete ui;
}

View File

@ -71,7 +71,10 @@ DialogCutSpline::DialogCutSpline(const VContainer *data, const quint32 &toolId,
//---------------------------------------------------------------------------------------------------------------------
DialogCutSpline::~DialogCutSpline()
{
if (qApp->getCurrentScene()->items().contains(path))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete path;
}
delete ui;
}

View File

@ -71,7 +71,10 @@ DialogCutSplinePath::DialogCutSplinePath(const VContainer *data, const quint32 &
//---------------------------------------------------------------------------------------------------------------------
DialogCutSplinePath::~DialogCutSplinePath()
{
if (qApp->getCurrentScene()->items().contains(path))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete path;
}
delete ui;
}

View File

@ -302,6 +302,9 @@ void DialogEndLine::closeEvent(QCloseEvent *event)
//---------------------------------------------------------------------------------------------------------------------
DialogEndLine::~DialogEndLine()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -69,7 +69,10 @@ DialogHeight::DialogHeight(const VContainer *data, const quint32 &toolId, QWidge
//---------------------------------------------------------------------------------------------------------------------
DialogHeight::~DialogHeight()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -66,7 +66,10 @@ DialogLine::DialogLine(const VContainer *data, const quint32 &toolId, QWidget *p
//---------------------------------------------------------------------------------------------------------------------
DialogLine::~DialogLine()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -72,7 +72,10 @@ DialogLineIntersect::DialogLineIntersect(const VContainer *data, const quint32 &
//---------------------------------------------------------------------------------------------------------------------
DialogLineIntersect::~DialogLineIntersect()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -81,7 +81,10 @@ DialogLineIntersectAxis::DialogLineIntersectAxis(const VContainer *data, const q
//---------------------------------------------------------------------------------------------------------------------
DialogLineIntersectAxis::~DialogLineIntersectAxis()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -120,7 +120,10 @@ void DialogNormal::DeployFormulaTextEdit()
//---------------------------------------------------------------------------------------------------------------------
DialogNormal::~DialogNormal()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -96,7 +96,10 @@ DialogPointOfContact::DialogPointOfContact(const VContainer *data, const quint32
//---------------------------------------------------------------------------------------------------------------------
DialogPointOfContact::~DialogPointOfContact()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -67,7 +67,10 @@ DialogPointOfIntersection::DialogPointOfIntersection(const VContainer *data, con
//---------------------------------------------------------------------------------------------------------------------
DialogPointOfIntersection::~DialogPointOfIntersection()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -131,7 +131,10 @@ void DialogShoulderPoint::DeployFormulaTextEdit()
//---------------------------------------------------------------------------------------------------------------------
DialogShoulderPoint::~DialogShoulderPoint()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}

View File

@ -60,7 +60,10 @@ DialogSpline::DialogSpline(const VContainer *data, const quint32 &toolId, QWidge
//---------------------------------------------------------------------------------------------------------------------
DialogSpline::~DialogSpline()
{
if (qApp->getCurrentScene()->items().contains(path))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete path;
}
delete ui;
}

View File

@ -65,7 +65,10 @@ DialogSplinePath::DialogSplinePath(const VContainer *data, const quint32 &toolId
//---------------------------------------------------------------------------------------------------------------------
DialogSplinePath::~DialogSplinePath()
{
if (qApp->getCurrentScene()->items().contains(visPath))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete visPath;
}
delete ui;
}

View File

@ -72,7 +72,10 @@ DialogTriangle::DialogTriangle(const VContainer *data, const quint32 &toolId, QW
//---------------------------------------------------------------------------------------------------------------------
DialogTriangle::~DialogTriangle()
{
if (qApp->getCurrentScene()->items().contains(line))
{ // In some cases scene delete object yourself. If not make check program will crash.
delete line;
}
delete ui;
}