- if ((myPort->IsEndSwitch() && myPort->IsInput()) ||
- (myPort->IsInLine() && myPort->Node()->Kind() != SUPERV::EndLoopNode
- && !(myPort->Node()->Kind() == SUPERV::LoopNode && !myPort->IsInput()))) {
+ if (myMain->isEditable()
+ &&
+ ((myPort->IsEndSwitch() && myPort->IsInput())
+ ||
+ (myPort->IsInLine() && myPort->Node()->Kind() != SUPERV::EndLoopNode
+ &&
+ !(myPort->Node()->Kind() == SUPERV::LoopNode && !myPort->IsInput())))) {