Fix bug in Dialog piece path. Dialog was blocked if piece path is internal
path. --HG-- branch : develop
This commit is contained in:
parent
1199adf6e4
commit
551d11f298
|
@ -92,6 +92,7 @@ void DialogPiecePath::EnbleShowMode(bool disable)
|
||||||
m_showMode = disable;
|
m_showMode = disable;
|
||||||
ui->comboBoxType->setDisabled(m_showMode);
|
ui->comboBoxType->setDisabled(m_showMode);
|
||||||
ui->comboBoxPiece->setDisabled(m_showMode);
|
ui->comboBoxPiece->setDisabled(m_showMode);
|
||||||
|
ValidObjects(PathIsValid());
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -201,6 +202,12 @@ void DialogPiecePath::CheckState()
|
||||||
{// Works only for internal paths
|
{// Works only for internal paths
|
||||||
m_flagFormulaVisible = true;
|
m_flagFormulaVisible = true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
flagFormula = true;
|
||||||
|
m_flagFormulaBefore = true;
|
||||||
|
m_flagFormulaAfter = true;
|
||||||
|
}
|
||||||
|
|
||||||
bOk->setEnabled(flagName && flagError && flagFormula && m_flagFormulaBefore && m_flagFormulaAfter
|
bOk->setEnabled(flagName && flagError && flagFormula && m_flagFormulaBefore && m_flagFormulaAfter
|
||||||
&& m_flagFormulaVisible);
|
&& m_flagFormulaVisible);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user