Ignore:
Timestamp:
11/23/12 18:43:14 (17 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed new link creation when more than one links are possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/scheme/scheme.py

    r11189 r11199  
    359359        # Get existing links to sink channels that are Single. 
    360360        links = self.find_links(None, None, sink_node) 
    361         already_connected_sinks = [link for link in links \ 
     361        already_connected_sinks = [link.sink_channel for link in links \ 
    362362                                   if link.sink_channel.single] 
    363363 
     
    367367                weight = 0 
    368368            else: 
    369                 check = [not out_c.dynamic,  # Dynamic signals are lasts 
     369                check = [not out_c.dynamic,  # Dynamic signals are last 
    370370                         in_c not in already_connected_sinks, 
    371371                         bool(in_c.default), 
Note: See TracChangeset for help on using the changeset viewer.