footageviewer: fixed bug that signalled a null footage file

This commit is contained in:
itsmattkc
2020-08-08 03:08:40 +10:00
parent edeeed49ba
commit 0075733da1
+8 -1
View File
@@ -39,7 +39,14 @@ FootageViewerPanel::FootageViewerPanel(QWidget *parent) :
QList<Footage *> FootageViewerPanel::GetSelectedFootage() const
{
return {static_cast<FootageViewerWidget*>(GetTimeBasedWidget())->GetFootage()};
QList<Footage *> list;
Footage* f = static_cast<FootageViewerWidget*>(GetTimeBasedWidget())->GetFootage();
if (f) {
list.append(f);
}
return list;
}
void FootageViewerPanel::SetFootage(Footage *f)