Commit e1674dc8 authored by Craig Watson's avatar Craig Watson

Fixed video not getting removed from scene when asked to

parent 1925add4
......@@ -198,6 +198,11 @@ void UBGraphicsMediaItemDelegate::remove(bool canUndo)
if (delegated() && delegated()->mediaObject())
delegated()->mediaObject()->stop();
if (delegated()->videoItem()) {
UBGraphicsScene* scene = dynamic_cast<UBGraphicsScene*>(mDelegated->scene());
scene->removeItem(delegated()->videoItem());
}
UBGraphicsItemDelegate::remove(canUndo);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment