107 self.accept() |
107 self.accept() |
108 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
108 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
109 self.__finish(0, 0, giveUp=True) |
109 self.__finish(0, 0, giveUp=True) |
110 |
110 |
111 @pyqtSlot(int, QProcess.ExitStatus) |
111 @pyqtSlot(int, QProcess.ExitStatus) |
112 def __finish(self, exitCode, exitStatus, giveUp=False): |
112 def __finish(self, exitCode, _exitStatus, giveUp=False): |
113 """ |
113 """ |
114 Private slot called when the process finished. |
114 Private slot called when the process finished. |
115 |
115 |
116 It is called when the process finished or |
116 It is called when the process finished or |
117 the user pressed the button. |
117 the user pressed the button. |
118 |
118 |
119 @param exitCode exit code of the process |
119 @param exitCode exit code of the process |
120 @type int |
120 @type int |
121 @param exitStatus exit status of the process |
121 @param _exitStatus exit status of the process (unused) |
122 @type QProcess.ExitStatus |
122 @type QProcess.ExitStatus |
123 @param giveUp flag indicating to not start another attempt |
123 @param giveUp flag indicating to not start another attempt |
124 @type bool |
124 @type bool |
125 """ |
125 """ |
126 if ( |
126 if ( |