--- a/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py Wed Aug 31 18:44:04 2011 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py Wed Aug 31 19:28:49 2011 +0200 @@ -81,7 +81,8 @@ @param e close event (QCloseEvent) """ if self.__hgClient: - self.__hgClient.cancel() + if self.__hgClient.isExecuting(): + self.__hgClient.cancel() else: if self.process is not None and \ self.process.state() != QProcess.NotRunning: @@ -153,9 +154,11 @@ out, err = self.__hgClient.runcommand(args) - if out: + if out and self.isVisible(): for line in out.splitlines(True): self.__processOutputLine(line) + if self.__hgClient.wasCanceled(): + break if err: self.__showError(err)