TaskDlgWeldingSymbol: fix creation issue

- assure that the other side is always created, also if it has no symbol yet

Now everything should be correct and I won't change the PR further
This commit is contained in:
donovaly
2020-03-30 03:52:38 +02:00
committed by WandererFan
parent fe333b219f
commit c92ab7efb4

View File

@@ -103,7 +103,7 @@ TaskWeldingSymbol::TaskWeldingSymbol(TechDraw::DrawLeaderLine* leader) :
connect(ui->pbOtherErase, SIGNAL(clicked(bool)),
this, SLOT(onOtherEraseCreateClicked()));
connect(ui->pbFlipSides, SIGNAL(clicked(bool)),
this, SLOT(onFlipSidesCreateClicked()));
this, SLOT(onFlipSidesCreateClicked()));
connect(ui->fcSymbolDir, SIGNAL(fileNameSelected(const QString&)),
this, SLOT(onDirectorySelected(const QString&)));
}
@@ -205,6 +205,9 @@ void TaskWeldingSymbol::setUiPrimary()
m_otherOut.init();
m_otherPath = QString();
m_otherSymbol = QString();
// we must mark the other side dirty to assure it gets created
m_otherDirty = true;
}
void TaskWeldingSymbol::setUiEdit()