diff --git a/commands/command_edit.cpp b/commands/command_edit.cpp index 5d835a8ee..fce031d76 100644 --- a/commands/command_edit.cpp +++ b/commands/command_edit.cpp @@ -859,6 +859,8 @@ void ReplanDive::undo() emit diveListNotifier.cylindersReset(divesToNotify); emit diveListNotifier.divesChanged(divesToNotify, DiveField::DATETIME | DiveField::DURATION | DiveField::DEPTH | DiveField::MODE | DiveField::NOTES | DiveField::SALINITY | DiveField::ATM_PRESS); + if (!placingCommand()) + setSelection({ d }, d); } // Redo and undo do the same @@ -930,6 +932,8 @@ void EditProfile::undo() QVector divesToNotify = { d }; emit diveListNotifier.divesChanged(divesToNotify, DiveField::DURATION | DiveField::DEPTH); + if (!placingCommand()) + setSelection({ d }, d); } // Redo and undo do the same