Commits

Matija Polajnar  committed 6c257e7

addon management dialog: make it repaint correctly on Macs (Ales' patch).

  • Participants
  • Parent commits 0c1237e

Comments (0)

Files changed (1)

File Orange/OrangeCanvas/orngDlgs.py

 
 class AddOnManagerDialog(QDialog):
     def __init__(self, canvasDlg, *args):
-        apply(QDialog.__init__,(self,) + args)
+        QDialog.__init__(self, *args)
+        self.setModal(True)
+
         self.canvasDlg = canvasDlg
         self.setWindowTitle("Add-on Management")
         self.topLayout = QVBoxLayout(self)
     def pcb(self, max, val):
         self.progress.setMaximum(max)
         self.progress.setValue(val)
-        self.progress.repaint()
+        qApp.processEvents(QEventLoop.ExcludeUserInputEvents)
 
     def reloadRepo(self):
         # Reload add-on list.