Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py

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

eric ide

mercurial