103 self.__finish(1, 0) |
103 self.__finish(1, 0) |
104 else: |
104 else: |
105 self.__logOutput(self.tr("Operation started.\n")) |
105 self.__logOutput(self.tr("Operation started.\n")) |
106 |
106 |
107 @pyqtSlot(int, QProcess.ExitStatus) |
107 @pyqtSlot(int, QProcess.ExitStatus) |
108 def __finish(self, exitCode, exitStatus): |
108 def __finish(self, exitCode, _exitStatus): |
109 """ |
109 """ |
110 Private slot called when the process finished. |
110 Private slot called when the process finished. |
111 |
111 |
112 It is called when the process finished or |
112 It is called when the process finished or |
113 the user pressed the button. |
113 the user pressed the button. |
114 |
114 |
115 @param exitCode exit code of the process |
115 @param exitCode exit code of the process |
116 @type int |
116 @type int |
117 @param exitStatus exit status of the process |
117 @param _exitStatus exit status of the process (unused) |
118 @type QProcess.ExitStatus |
118 @type QProcess.ExitStatus |
119 """ |
119 """ |
120 if ( |
120 if ( |
121 self.__process is not None |
121 self.__process is not None |
122 and self.__process.state() != QProcess.ProcessState.NotRunning |
122 and self.__process.state() != QProcess.ProcessState.NotRunning |