From b43ecdad4ed956a3075ecb55aed4497217d011d9 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 13 Nov 2019 20:53:10 +0100 Subject: Undo: don't delete dive sites when pasting dives We used to only keep sites with dives around. This changed when implementing the dive site tab. The paste-dive code was written using the old semantics and thus, when overwriting dive sites, it deleted unused dive sites. To make things consistent, remove that code. It would be very weird when dive sites are deleted by pasting, but not by setting a different dive site manually. Bonus: no more dependencies on desktop-includes in the undo code. Signed-off-by: Berthold Stoeger --- desktop-widgets/command_edit.h | 1 - 1 file changed, 1 deletion(-) (limited to 'desktop-widgets/command_edit.h') diff --git a/desktop-widgets/command_edit.h b/desktop-widgets/command_edit.h index 45fde9e59..8532523e2 100644 --- a/desktop-widgets/command_edit.h +++ b/desktop-widgets/command_edit.h @@ -257,7 +257,6 @@ struct PasteState { class PasteDives : public Base { dive_components what; std::vector dives; - std::vector ownedDiveSites; dive *current; public: PasteDives(const dive *d, dive_components what); -- cgit v1.2.3-70-g09d2