mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-10 23:22:33 +02:00
see #2492 properly disabling dialog controls for the read-only IPServcie object
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user