281 @param button button that was clicked (QAbstractButton) |
281 @param button button that was clicked (QAbstractButton) |
282 """ |
282 """ |
283 if button == self.buttonBox.button(QDialogButtonBox.Close): |
283 if button == self.buttonBox.button(QDialogButtonBox.Close): |
284 self.close() |
284 self.close() |
285 elif button == self.buttonBox.button(QDialogButtonBox.Cancel): |
285 elif button == self.buttonBox.button(QDialogButtonBox.Cancel): |
286 self.__finish() |
286 if self.__hgClient: |
|
287 self.__hgClient.cancel() |
|
288 else: |
|
289 self.__finish() |
287 elif button == self.refreshButton: |
290 elif button == self.refreshButton: |
288 self.on_refreshButton_clicked() |
291 self.on_refreshButton_clicked() |
289 |
292 |
290 def __procFinished(self, exitCode, exitStatus): |
293 def __procFinished(self, exitCode, exitStatus): |
291 """ |
294 """ |