From 587b3040d4872d86d1d44b4371c5e1a9a1e95e36 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sat, 12 Jan 2019 01:13:56 +1100 Subject: [PATCH] fixed bug preventing footage viewer closing deleted media --- panels/project.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/panels/project.cpp b/panels/project.cpp index eafb8da23..8742eecca 100644 --- a/panels/project.cpp +++ b/panels/project.cpp @@ -558,10 +558,8 @@ void Project::delete_selected_media() { if (panel_footage_viewer->seq != NULL) { for (int j=0;jseq->clips.size();j++) { Clip* c = panel_footage_viewer->seq->clips.at(j); - if (c != NULL) { - if (c->media == items.at(i)->to_object()) { - panel_footage_viewer->set_media(NULL); - } + if (c != NULL && c->media == items.at(i)) { + panel_footage_viewer->set_media(NULL); break; } }