Fix crash on zone undo

parent 92f03c42
......@@ -1148,15 +1148,11 @@ void TimelineController::updateZone(const QPoint oldZone, const QPoint newZone,
std::function<bool(void)> undo = []() { return true; };
std::function<bool(void)> redo = []() { return true; };
Fun undo_zone = [this, oldZone]() {
m_zone = oldZone;
emit zoneChanged();
emit zoneMoved(oldZone);
setZone(oldZone, false);
return true;
};
Fun redo_zone = [this, newZone]() {
m_zone = newZone;
emit zoneChanged();
emit zoneMoved(newZone);
setZone(newZone, false);
return true;
};
redo_zone();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment