This commit is contained in:
itsmattkc
2019-03-17 01:54:33 +11:00
parent 445c8299e7
commit 30fe8951db
+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);
}