53 """ |
53 """ |
54 Private slot implementing a close event handler. |
54 Private slot implementing a close event handler. |
55 |
55 |
56 @param e close event (QCloseEvent) |
56 @param e close event (QCloseEvent) |
57 """ |
57 """ |
58 if self.process is not None and \ |
58 if self.__hgClient: |
59 self.process.state() != QProcess.NotRunning: |
59 if self.__hgClient.isExecuting(): |
60 self.process.terminate() |
60 self.__hgClient.cancel() |
61 QTimer.singleShot(2000, self.process.kill) |
61 else: |
62 self.process.waitForFinished(3000) |
62 if self.process is not None and \ |
|
63 self.process.state() != QProcess.NotRunning: |
|
64 self.process.terminate() |
|
65 QTimer.singleShot(2000, self.process.kill) |
|
66 self.process.waitForFinished(3000) |
63 |
67 |
64 e.accept() |
68 e.accept() |
65 |
69 |
66 def start(self, path, bookmarksList): |
70 def start(self, path, bookmarksList): |
67 """ |
71 """ |