From 847a884e56ffb28dfd62cfb3e7cc8170c29889ff Mon Sep 17 00:00:00 2001 From: kitten Date: Wed, 13 Dec 2023 14:29:52 -0800 Subject: [PATCH] Fix crash on macOS when closing window with preview active (#454) --- CHANGELOG.md | 3 ++- corrscope/gui/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 140551d..eef78a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ - Improve error messages for 24-bit WAV files (#443) - Add end time field to GUI (#451) - Change GUI render divisor to 4 decimal places (#451) -- Fix crash with pitch tracking on low-sample-rate channels (#453) +- Fix crash with pitch tracking on low-sample-rate channels (#453) +- Fix crash on macOS when closing window with preview active (#454) ## 0.8.1 diff --git a/corrscope/gui/__init__.py b/corrscope/gui/__init__.py index 2347714..b0b0654 100644 --- a/corrscope/gui/__init__.py +++ b/corrscope/gui/__init__.py @@ -307,7 +307,7 @@ class MainWindow(qw.QMainWindow, Ui_MainWindow): # But since the dialog is modal, # self.corr_thread cannot have been replaced by a different thread. if self.corr_thread is not None: - self.corr_thread.abort_terminate() + self.corr_thread.job.abort_terminate() return True return False