Ignore:
Timestamp:
01/24/13 16:40:29 (15 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Set initial shown links in link edit dialog when creating a new link.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/canvas/editlinksdialog.py

    r11144 r11277  
    309309        if not compatible_channels(output, input): 
    310310            return 
     311 
     312        if output not in self.source.output_channels(): 
     313            raise ValueError("%r is not an output channel of %r" % \ 
     314                             (output, self.source)) 
     315 
     316        if input not in self.sink.input_channels(): 
     317            raise ValueError("%r is not an input channel of %r" % \ 
     318                             (input, self.sink)) 
    311319 
    312320        if input.single: 
Note: See TracChangeset for help on using the changeset viewer.