Merge pull request #598 from manongjohn/fix_crash_on_exit_with_floating_level_strip

Fix crashing on exit with floating level strip
This commit is contained in:
manongjohn 2021-02-28 23:51:25 -05:00 committed by GitHub
commit 16d4ec1713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -488,9 +488,8 @@ void FilmstripFrames::hideEvent(QHideEvent *) {
// if the level strip is floating during shutting down Tahoma2D // if the level strip is floating during shutting down Tahoma2D
// it can cause a crash disconnecting from the viewer which was already // it can cause a crash disconnecting from the viewer which was already
// destroyed. Checking the fps is a janky way to ensure the viewer is // destroyed.
// stil relevant. if (m_viewer && m_viewer->isValid()) {
if (m_viewer && m_viewer->getFPS() > -100) {
disconnect(m_viewer, SIGNAL(onZoomChanged()), this, SLOT(update())); disconnect(m_viewer, SIGNAL(onZoomChanged()), this, SLOT(update()));
disconnect(m_viewer, SIGNAL(refreshNavi()), this, SLOT(update())); disconnect(m_viewer, SIGNAL(refreshNavi()), this, SLOT(update()));
m_viewer = nullptr; m_viewer = nullptr;