mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-24 12:17:26 +01:00
see #2492 properly disabling dialog controls for the read-only IPServcie object
This commit is contained in:
parent
9740d4a703
commit
9505e2dcd0
@ -140,6 +140,8 @@ void IPServiceDialog::loadFWObject(FWObject *o)
|
||||
}
|
||||
setCodeLabel();
|
||||
|
||||
anyOptionsStateChanged();
|
||||
|
||||
m_dialog->comment->setText( QString::fromUtf8(s->getComment().c_str()) );
|
||||
|
||||
m_dialog->object_attributes_1->show();
|
||||
@ -179,7 +181,12 @@ void IPServiceDialog::loadFWObject(FWObject *o)
|
||||
m_dialog->comment->setReadOnly(o->isReadOnly());
|
||||
setDisabledPalette(m_dialog->comment);
|
||||
|
||||
anyOptionsStateChanged();
|
||||
m_dialog->use_tos->setEnabled(!o->isReadOnly());
|
||||
m_dialog->use_dscp->setEnabled(!o->isReadOnly());
|
||||
m_dialog->code->setEnabled(!o->isReadOnly());
|
||||
setDisabledPalette(m_dialog->code);
|
||||
|
||||
//anyOptionsStateChanged();
|
||||
}
|
||||
|
||||
init = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user