Ignore:
Timestamp:
03/18/13 12:49:57 (13 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Replaced QTimer.singleShot with a QTimer instance to schedule preview item updates.

QTimer.singleShot event can outlive the PreviewModel causing a RuntimeError.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/application/canvasmain.py

    r11411 r11413  
    11111111 
    11121112        dialog.deleteLater() 
     1113        model.deleteLater() 
    11131114 
    11141115        if status == QDialog.Accepted: 
     
    12231224 
    12241225        bottom_row = [self.get_started_action, tutorials_action, 
    1225                    self.documentation_action] 
     1226                      self.documentation_action] 
    12261227 
    12271228        self.new_action.triggered.connect(dialog.accept) 
Note: See TracChangeset for help on using the changeset viewer.