enthought/pyface
View on GitHubButtons are not set up correctly in ui/qt4/progress_dialog.py
Open
#135 opened on Jul 6, 2015
Good First Issue
Repository metrics
- Stars
- (115 stars)
- PR merge metrics
- (PR metrics pending)
Description
Issue: when clicked, "Cancel" button closes dialog window but does not return self._user_cancelled = True during update or calls reject function.
Possible solution: replace lines 147, 148:
if self.can_cancel:
buttons.connect(buttons, QtCore.SIGNAL('rejected()'), dialog, QtCore.SLOT('reject()'))
with
if self.can_cancel:
buttons.clicked.connect(self.reject)