fixed compile issues

This commit is contained in:
itsmattkc
2018-12-13 14:57:56 +11:00
parent 3eef432fb5
commit b3fb7d37af
7 changed files with 26 additions and 21 deletions
+7 -2
View File
@@ -18,14 +18,19 @@ void ProjectModel::destroy_root() {
if (panel_sequence_viewer != NULL) panel_sequence_viewer->viewer_widget->delete_function();
if (panel_footage_viewer != NULL) panel_footage_viewer->viewer_widget->delete_function();
if (root_item != NULL) delete root_item;
if (root_item != NULL) {
beginRemoveRows(QModelIndex(), 0, root_item->childCount());
delete root_item;
endRemoveRows();
}
}
void ProjectModel::clear() {
destroy_root();
beginResetModel();
root_item = new Media(0);
root_item->root = true;
update_data();
endResetModel();
}
Media *ProjectModel::get_root() {