global: made every user action set a project "modified" state that will prevent

the main window from closing instantly
This commit is contained in:
itsmattkc
2020-03-03 14:33:45 +11:00
parent 0f5cd40c45
commit baf3fbde05
25 changed files with 377 additions and 238 deletions
+4 -4
View File
@@ -333,18 +333,18 @@ void SpeedDurationDialog::DurationChanged()
}
BlockReverseCommand::BlockReverseCommand(Block *block, QUndoCommand *parent) :
QUndoCommand(parent),
UndoCommand(parent),
block_(block)
{
}
void BlockReverseCommand::redo()
void BlockReverseCommand::redo_internal()
{
block_->set_media_in(block_->media_out());
block_->set_speed(-block_->speed());
}
void BlockReverseCommand::undo()
void BlockReverseCommand::undo_internal()
{
redo();
redo_internal();
}