viewer: set display image to null when disconnecting viewer node

This commit is contained in:
itsmattkc
2021-05-05 19:07:34 +10:00
parent 4942970c02
commit 84847e0939
+2
View File
@@ -249,6 +249,8 @@ void ViewerWidget::DisconnectNodeEvent(ViewerOutput *n)
disconnect(n->audio_playback_cache(), &AudioPlaybackCache::Validated, this, &ViewerWidget::AudioCacheValidated);
disconnect(n, &ViewerOutput::TextureInputChanged, this, &ViewerWidget::UpdateStack);
SetDisplayImage(nullptr, false);
ruler()->SetPlaybackCache(nullptr);
// Effectively disables the viewer and clears the state