added effects and fixed some crashes

This commit is contained in:
itsmattkc
2018-11-15 21:02:08 +11:00
parent 0e924caf8e
commit f007f39dd2
17 changed files with 414 additions and 111 deletions
+2 -9
View File
@@ -360,15 +360,8 @@ AddMediaCommand::~AddMediaCommand() {
}
void AddMediaCommand::undo() {
if (parent == NULL) {
bool found = false;
for (int i=0;i<panel_project->source_table->topLevelItemCount();i++) {
if (panel_project->source_table->topLevelItem(i) == item) {
panel_project->source_table->takeTopLevelItem(i);
found = true;
break;
}
}
if (parent == NULL) {
panel_project->source_table->takeTopLevelItem(panel_project->source_table->indexOfTopLevelItem(item));
} else {
parent->removeChild(item);
}