163 @param button button that was clicked (QAbstractButton) |
163 @param button button that was clicked (QAbstractButton) |
164 """ |
164 """ |
165 if button == self.buttonBox.button(QDialogButtonBox.Close): |
165 if button == self.buttonBox.button(QDialogButtonBox.Close): |
166 self.close() |
166 self.close() |
167 elif button == self.buttonBox.button(QDialogButtonBox.Cancel): |
167 elif button == self.buttonBox.button(QDialogButtonBox.Cancel): |
168 self.__finish() |
168 if self.__hgClient: |
|
169 self.__hgClient.cancel() |
|
170 else: |
|
171 self.__finish() |
169 |
172 |
170 def __procFinished(self, exitCode, exitStatus): |
173 def __procFinished(self, exitCode, exitStatus): |
171 """ |
174 """ |
172 Private slot connected to the finished signal. |
175 Private slot connected to the finished signal. |
173 |
176 |