Fix crashing on exit with floating level strip
This commit is contained in:
parent
588c760e8a
commit
f3c820f2bf
1 changed files with 2 additions and 3 deletions
|
@ -488,9 +488,8 @@ void FilmstripFrames::hideEvent(QHideEvent *) {
|
|||
|
||||
// if the level strip is floating during shutting down Tahoma2D
|
||||
// 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
|
||||
// stil relevant.
|
||||
if (m_viewer && m_viewer->getFPS() > -100) {
|
||||
// destroyed.
|
||||
if (m_viewer && m_viewer->isValid()) {
|
||||
disconnect(m_viewer, SIGNAL(onZoomChanged()), this, SLOT(update()));
|
||||
disconnect(m_viewer, SIGNAL(refreshNavi()), this, SLOT(update()));
|
||||
m_viewer = nullptr;
|
||||
|
|
Loading…
Reference in a new issue