From fa42d4f6615e80f70d192cd3d1703e5932e5ed89 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 25 Jul 2017 17:59:10 -0400 Subject: [PATCH] Some null checks, might be needed when project is closing --- src/Project.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Project.cpp b/src/Project.cpp index c9b7c4be6..903274565 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -2029,7 +2029,8 @@ void AudacityProject::FixScrollbars() } CallAfter( - [this]{ GetTrackPanel()->HandleCursorForPresentMouseState(); } ); + [this]{ if (GetTrackPanel()) + GetTrackPanel()->HandleCursorForPresentMouseState(); } ); } std::shared_ptr AudacityProject::GetFirstVisible() @@ -2279,7 +2280,8 @@ void AudacityProject::DoScroll() } CallAfter( - [this]{ GetTrackPanel()->HandleCursorForPresentMouseState(); } ); + [this]{ if (GetTrackPanel()) + GetTrackPanel()->HandleCursorForPresentMouseState(); } ); } bool AudacityProject::ReportIfActionNotAllowed