Desktop: Fix Undo for Gaschanges on Manually Added Dives.

Fix the undo functionality for gaschanges edited on manually added
dives.

Pointed-out-by: @bstoeger
Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
Michael Keller 2024-06-02 20:58:14 +12:00 committed by bstoeger
parent 692ec9ee5c
commit adaa52bf9b

View file

@ -392,8 +392,6 @@ void ProfileWidget::stopEdited()
if (!editedDive)
return;
copy_events(get_dive_dc(editedDive.get(), dc), get_dive_dc(d, dc));
Setter s(placingCommand, true);
Command::editProfile(editedDive.get(), dc, Command::EditProfileType::EDIT, 0);
}