Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py

changeset 1242
dfb9609caf51
parent 1241
09c6155ee612
child 1250
dafdd7d97a9f
equal deleted inserted replaced
1241:09c6155ee612 1242:dfb9609caf51
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 """

eric ide

mercurial