Ticket #1266: addon-dlg.diff

File addon-dlg.diff, 786 bytes (added by ales, 19 months ago)
  • Orange/OrangeCanvas/orngDlgs.py

    diff --git a/Orange/OrangeCanvas/orngDlgs.py b/Orange/OrangeCanvas/orngDlgs.py
    a b  
    726726 
    727727class AddOnManagerDialog(QDialog): 
    728728    def __init__(self, canvasDlg, *args): 
    729         apply(QDialog.__init__,(self,) + args) 
     729        QDialog.__init__(self, *args) 
     730        self.setModal(True) 
     731 
    730732        self.canvasDlg = canvasDlg 
    731733        self.setWindowTitle("Add-on Management") 
    732734        self.topLayout = QVBoxLayout(self) 
     
    889891    def pcb(self, max, val): 
    890892        self.progress.setMaximum(max) 
    891893        self.progress.setValue(val) 
    892         self.progress.repaint() 
     894        qApp.processEvents(QEventLoop.ExcludeUserInputEvents) 
    893895 
    894896    def reloadRepo(self): 
    895897        # Reload add-on list.