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:
parent
692ec9ee5c
commit
adaa52bf9b
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user