mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 03:13:24 +00:00
Change default behavior for Stats to show selected dives
Previously when only one dive was selected, the Stats notebook page would show the statistics for all dive. That creates a very illogical behavior when clicking on the different dive groups in the dive list. The stats page would always show how many dives where in a group when the group was selected, except when there was only one dive in the group, in which case the statistics for all the dives were shown. With this change we also show the statistics for the selected dives, even if it is just one. If you want the statistics for all dives, simply select them all (Ctrl-A or Command-A on a Mac). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ed1ce8ebc8
commit
d7ea559d8b
1 changed files with 1 additions and 4 deletions
|
@ -274,10 +274,7 @@ static void show_total_dive_stats(struct dive *dive)
|
|||
const char *unit;
|
||||
stats_t *stats_ptr;
|
||||
|
||||
if (amount_selected < 2)
|
||||
stats_ptr = &stats;
|
||||
else
|
||||
stats_ptr = &stats_selection;
|
||||
stats_ptr = &stats_selection;
|
||||
|
||||
set_label(stats_w.selection_size, "%d", stats_ptr->selection_size);
|
||||
if (stats_ptr->min_temp) {
|
||||
|
|
Loading…
Add table
Reference in a new issue