1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 07:13:49 +01:00

Some null checks, might be needed when project is closing

This commit is contained in:
Paul Licameli
2017-07-25 17:59:10 -04:00
parent 188886f4da
commit fa42d4f661

View File

@@ -2029,7 +2029,8 @@ void AudacityProject::FixScrollbars()
}
CallAfter(
[this]{ GetTrackPanel()->HandleCursorForPresentMouseState(); } );
[this]{ if (GetTrackPanel())
GetTrackPanel()->HandleCursorForPresentMouseState(); } );
}
std::shared_ptr<Track> AudacityProject::GetFirstVisible()
@@ -2279,7 +2280,8 @@ void AudacityProject::DoScroll()
}
CallAfter(
[this]{ GetTrackPanel()->HandleCursorForPresentMouseState(); } );
[this]{ if (GetTrackPanel())
GetTrackPanel()->HandleCursorForPresentMouseState(); } );
}
bool AudacityProject::ReportIfActionNotAllowed