Ignore:
Timestamp:
11/30/12 11:58:25 (17 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Select and accept a scheme with a double click on an item in the preview list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/preview/previewdialog.py

    r11206 r11215  
    6767            self.__on_currentIndexChanged 
    6868        ) 
     69        self.__browser.activated.connect(self.__on_activated) 
    6970 
    7071        layout.setSizeConstraint(QVBoxLayout.SetFixedSize) 
     
    110111        button.setEnabled(index >= 0) 
    111112        self.currentIndexChanged.emit(index) 
     113 
     114    def __on_activated(self, index): 
     115        if self.currentIndex() != index: 
     116            self.setCurrentIndex(index) 
     117 
     118        self.accept() 
Note: See TracChangeset for help on using the changeset viewer.