From 9505e2dcd08a7503dcf97aa8acafa544001da23c Mon Sep 17 00:00:00 2001 From: Vadim Kurland Date: Thu, 9 Jun 2011 16:46:09 -0700 Subject: [PATCH] see #2492 properly disabling dialog controls for the read-only IPServcie object --- src/libgui/IPServiceDialog.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libgui/IPServiceDialog.cpp b/src/libgui/IPServiceDialog.cpp index dcd1b648e..90d9af45e 100644 --- a/src/libgui/IPServiceDialog.cpp +++ b/src/libgui/IPServiceDialog.cpp @@ -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;