Merge branch 'master' of https://github.com/olive-editor/olive into furtherocio

This commit is contained in:
itsmattkc
2019-03-17 01:54:47 +11:00
+4
View File
@@ -478,6 +478,10 @@ Media* Project::item_to_media(const QModelIndex &index) {
MediaPtr Project::item_to_media_ptr(const QModelIndex &index) {
Media* raw_ptr = item_to_media(index);
if (raw_ptr == nullptr) {
return nullptr;
}
return raw_ptr->parentItem()->get_shared_ptr(raw_ptr);
}