124 self.accept() |
124 self.accept() |
125 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
125 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): |
126 self.__finish(0, 0, giveUp=True) |
126 self.__finish(0, 0, giveUp=True) |
127 |
127 |
128 @pyqtSlot(int, QProcess.ExitStatus) |
128 @pyqtSlot(int, QProcess.ExitStatus) |
129 def __finish(self, exitCode, exitStatus, giveUp=False): |
129 def __finish(self, exitCode, _exitStatus, giveUp=False): |
130 """ |
130 """ |
131 Private slot called when the process finished. |
131 Private slot called when the process finished. |
132 |
132 |
133 It is called when the process finished or the user pressed the button. |
133 It is called when the process finished or the user pressed the button. |
134 |
134 |
135 @param exitCode exit code of the process |
135 @param exitCode exit code of the process |
136 @type int |
136 @type int |
137 @param exitStatus exit status of the process |
137 @param _exitStatus exit status of the process (unused) |
138 @type QProcess.ExitStatus |
138 @type QProcess.ExitStatus |
139 @param giveUp flag indicating to not start another attempt |
139 @param giveUp flag indicating to not start another attempt |
140 @type bool |
140 @type bool |
141 """ |
141 """ |
142 if ( |
142 if ( |