Skip to content

Commit

Permalink
Bugfix: Deleting grid division point cause iRIC GUI crash. #1485
Browse files Browse the repository at this point in the history
  • Loading branch information
kskinoue0612 committed Dec 5, 2024
1 parent 2b34d89 commit a2ee7e5
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 a2ee7e5

Please sign in to comment.