Skip to content

Commit

Permalink
Merge branch 'issue-1485' into master_v4
Browse files Browse the repository at this point in the history
  • Loading branch information
kskinoue0612 committed Dec 6, 2024
2 parents b319571 + a2ee7e5 commit a36b77e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ class GridCreatingConditionCtrlPointDeleteCommand : public QUndoCommand
{}

void undo() {
m_condition->m_mouseEventMode = GridCreatingConditionRiverSurvey::MouseEventMode::meNormal;
m_condition->cancelBackgroundGridUpdate();

for (GeoDataRiverSurveyCtrlPointBackup* backup : m_before) {
backup->restore();
}
Expand All @@ -70,6 +72,7 @@ class GridCreatingConditionCtrlPointDeleteCommand : public QUndoCommand
}

void redo() {
m_condition->m_mouseEventMode = GridCreatingConditionRiverSurvey::MouseEventMode::meNormal;
m_condition->cancelBackgroundGridUpdate();
for (GeoDataRiverSurveyCtrlPointBackup* backup : m_after) {
backup->restore();
Expand Down

0 comments on commit a36b77e

Please sign in to comment.