Berthold Stoeger 325b8bba35 Undo: remember deleted trip in UndoRemoveDivesFromTrip::undo()
If the last dive of a trip is removed, the trip is deleted.
On redo the dive is added to a non existing trip, leading to a
segfault.

Therefore, keep a copy of the trip to reinstate it on redo.
Note: this cannot work for a sequence of multiple commands.
One would have to rewrite the whole undo-history. Nevertheless,
let's do this as a stop-gap measure.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-19 02:43:08 +03:00
..
2018-07-18 02:09:15 +03:00
2018-07-18 02:09:15 +03:00
2017-11-25 20:13:01 +01:00
2018-07-17 15:20:52 -07:00
2018-01-31 14:47:26 +01:00
2017-04-29 13:32:55 -07:00
2018-01-08 09:52:55 +02:00
2017-05-26 15:52:04 -07:00
2018-05-27 23:18:01 +03:00
2018-07-14 08:32:30 +02:00
2018-07-04 02:27:36 +08:00
2017-05-26 15:44:36 -07:00
2018-04-28 20:11:22 +03:00
2018-07-12 08:08:00 -07:00
2017-04-29 13:32:55 -07:00
2018-05-30 21:47:07 -07:00
2017-04-29 13:32:55 -07:00
2017-10-04 08:05:09 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00