Skip to content

Commit

Permalink
Terminate process always
Browse files Browse the repository at this point in the history
  • Loading branch information
dkratzert committed Sep 10, 2023
1 parent 7286f7a commit 28d0764
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion finalcif/appwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,8 @@ def do_offline_checkcif(self) -> None:
self.ui.CheckCifLogPlainTextEdit.setPlainText('\nPlaton executable not found!')
self.ui.CheckCifLogPlainTextEdit.appendPlainText('You can download Platon at http://www.platonsoft.nl/platon/\n')
runner.tick.connect(self.append_to_ciflog_without_newline)
runner.run_process()
runner.finished.connect(lambda: self.ui.CheckcifButton.setEnabled(True))
runner.run_process()
app.processEvents()

def append_to_ciflog_without_newline(self, text: str = '') -> None:
Expand Down
4 changes: 2 additions & 2 deletions finalcif/tools/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def _monitor_output_log(self):

def _stop_program(self):
self.is_stopped = True
if self.process and self.process.state() == QProcess.Running:
self.process.terminate()
#if self.process and self.process.state() == QProcess.Running:
self.process.terminate()
self.finished.emit(True)

def _parse_chk_file(self):
Expand Down

0 comments on commit 28d0764

Please sign in to comment.