}
else {
//check if port with such name is already exists
QStringList aNames = node->getPortsNamesIN(aNode, false);
if (aNames.contains(aName))
QMessageBox::warning( QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_PORT_EXIST") );
}
else {
//check if port with such name is already exists
QStringList aNames = node->getPortsNamesIN(aNode, false);
if (aNames.contains(aName))
QMessageBox::warning( QAD_Application::getDesktop(), tr("ERROR"), tr("MSG_PORT_EXIST") );