adding sequences can now be undone

This commit is contained in:
itsmattkc
2018-07-19 12:17:22 +01:00
parent 48b1c21d6c
commit 33f8d7274a
7 changed files with 92 additions and 23 deletions
+4 -1
View File
@@ -4,6 +4,7 @@
#include "panels/panels.h"
#include "panels/project.h"
#include "project/sequence.h"
#include "project/undo.h"
#include <QVariant>
#include <QDebug>
@@ -61,7 +62,9 @@ void NewSequenceDialog::on_buttonBox_accepted()
s->audio_frequency = ui->audio_frequency_combobox->currentData().toInt();
s->audio_layout = AV_CH_LAYOUT_STEREO;
panel_project->new_sequence(s, true, NULL);
TimelineAction* ta = new TimelineAction();
panel_project->new_sequence(ta, s, true, NULL);
undo_stack.push(ta);
}
void NewSequenceDialog::on_comboBox_currentIndexChanged(int index)