From 5e14bdc8f027f0177922863077083d294b7e398e Mon Sep 17 00:00:00 2001 From: Date: Tue, 17 Jun 2008 01:54:40 +0000 Subject: [PATCH] bugfix 2580 --- src/gui/newHostDialog.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui/newHostDialog.cpp b/src/gui/newHostDialog.cpp index b1c3b1295..bdaf4763a 100644 --- a/src/gui/newHostDialog.cpp +++ b/src/gui/newHostDialog.cpp @@ -693,7 +693,13 @@ void newHostDialog::finishClicked() if (dyn) oi->setDyn(true); if (unnum) oi->setUnnumbered(true); oi->setSecurityLevel(0); - + if (physaddr != "") + { + QString addrname=QString("%1:%2:mac") + .arg(m_dialog->obj_name->text()).arg(name); + physAddress * pa = physAddress::cast(mw->createObject(oi,physAddress::TYPENAME,addrname)); + pa->setPhysAddress(physaddr.toLatin1().constData()); + } if (!dyn && !unnum) { QString addrname=QString("%1:%2:ip")