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()
{
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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}