From 0755cc522b9d68580f79e567808770df5814f150 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 9 Feb 2013 06:17:25 -0800 Subject: Show the actice divecomputer's data in the Info notebook While the profile switched between different divecomputers, the Dive Info notebook always showed either information from the first divecomputer or (with some of the recent changes) information that had been collected from all divecomputers and somehow consolidated for the dive. With this commit we now show the data from the same divecomputer that is also shown in the profile (which means if some data is available from one of the divecomputers and not from another that will be correctly reflected in the Dive Info notebook as the user cycles through the divecomputers. This does beg the question if we should have some kind of "best data available, considering all divecomputers" mode - but that's definitely not something I'll tackle prior to 3.0. Signed-off-by: Dirk Hohndel --- profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile.c') diff --git a/profile.c b/profile.c index eecdffe66..2befb4d2c 100644 --- a/profile.c +++ b/profile.c @@ -1955,7 +1955,7 @@ static int nr_dcs(struct divecomputer *main) return i; } -static struct divecomputer *select_dc(struct divecomputer *main) +struct divecomputer *select_dc(struct divecomputer *main) { int i = dc_number; struct divecomputer *dc = main; -- cgit v1.2.3-70-g09d2