diff --git a/finalcif/appwindow.py b/finalcif/appwindow.py index 2b16e252..e473cfee 100644 --- a/finalcif/appwindow.py +++ b/finalcif/appwindow.py @@ -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: diff --git a/finalcif/tools/process.py b/finalcif/tools/process.py index d38041e4..19a4ad47 100644 --- a/finalcif/tools/process.py +++ b/finalcif/tools/process.py @@ -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):