66 @param e close event (QCloseEvent) |
66 @param e close event (QCloseEvent) |
67 """ |
67 """ |
68 if self.process is not None and \ |
68 if self.process is not None and \ |
69 self.process.state() != QProcess.NotRunning: |
69 self.process.state() != QProcess.NotRunning: |
70 self.process.terminate() |
70 self.process.terminate() |
71 QTimer.singleShot(2000, self.process, SLOT('kill()')) |
71 QTimer.singleShot(2000, self.process.kill) |
72 self.process.waitForFinished(3000) |
72 self.process.waitForFinished(3000) |
73 |
73 |
74 e.accept() |
74 e.accept() |
75 |
75 |
76 def __resort(self): |
76 def __resort(self): |
333 Private slot called when the process finished or the user pressed the button. |
333 Private slot called when the process finished or the user pressed the button. |
334 """ |
334 """ |
335 if self.process is not None and \ |
335 if self.process is not None and \ |
336 self.process.state() != QProcess.NotRunning: |
336 self.process.state() != QProcess.NotRunning: |
337 self.process.terminate() |
337 self.process.terminate() |
338 QTimer.singleShot(2000, self.process, SLOT('kill()')) |
338 QTimer.singleShot(2000, self.process.kill) |
339 self.process.waitForFinished(3000) |
339 self.process.waitForFinished(3000) |
340 |
340 |
341 self.inputGroup.setEnabled(False) |
341 self.inputGroup.setEnabled(False) |
342 |
342 |
343 self.repoTree.doItemsLayout() |
343 self.repoTree.doItemsLayout() |