Changeset 1714


Ignore:
Timestamp:
Jun 30, 2010, 1:48:22 PM (11 years ago)
Author:
kopal
Message:
  • a pluginmodel now cannot be connected to itself
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/Model/WorkspaceModel.cs

    r1711 r1714  
    256256        public static bool compatibleConnectors(ConnectorModel connectorModelA, ConnectorModel connectorModelB)
    257257        {
    258             if (!connectorModelA.Outgoing || connectorModelB.Outgoing)
     258            if (!connectorModelA.Outgoing || connectorModelB.Outgoing || connectorModelA.PluginModel == connectorModelB.PluginModel)
    259259            {
    260260                return false;
    261261            }
    262            
     262               
    263263            if (connectorModelA.ConnectorType.Equals(connectorModelB.ConnectorType)
    264264                || connectorModelA.ConnectorType.FullName == "System.Object"
Note: See TracChangeset for help on using the changeset viewer.