Disable Group Nodes if the main list doesn't contain points.
--HG-- branch : feature
This commit is contained in:
parent
caba2db95b
commit
878fdb6156
|
@ -69,10 +69,6 @@ DialogSeamAllowance::DialogSeamAllowance(const VContainer *data, const quint32 &
|
|||
InitNodesList();
|
||||
connect(ui->comboBoxNodes, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
|
||||
&DialogSeamAllowance::NodeChanged);
|
||||
if (ui->comboBoxNodes->count() > 0)
|
||||
{
|
||||
NodeChanged(0);
|
||||
}
|
||||
|
||||
connect(ui->pushButtonDefBefore, &QPushButton::clicked, this, &DialogSeamAllowance::ReturnDefBefore);
|
||||
connect(ui->pushButtonDefAfter, &QPushButton::clicked, this, &DialogSeamAllowance::ReturnDefAfter);
|
||||
|
@ -599,10 +595,7 @@ void DialogSeamAllowance::InitNodesList()
|
|||
}
|
||||
else
|
||||
{
|
||||
if (ui->comboBoxNodes->count() > 0)
|
||||
{
|
||||
NodeChanged(0);
|
||||
}
|
||||
ui->comboBoxNodes->count() > 0 ? NodeChanged(0) : NodeChanged(-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user