subsurface/qt-ui/profile
Linus Torvalds 37794e2e23 Be more careful about dive computer selection
The selection logic was a bit random: some places would return NULL if
the dive computer index was out of range, others would return the
primary dive computer, and actually moving between dive computers would
just blindly increment and decrement the number.

This always selects the primary computer if the index is out of bounds,
and makes sure we stay in bound when switching beteen dive computers
(but switching between dives can then turn an in-bound number into an
out-of-bounds one)

Fixes #464

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-03-17 10:53:49 -07:00
..
animationfunctions.cpp Support save / load for the Animation Speed on the Preferences 2014-03-11 17:41:41 -07:00
animationfunctions.h Support Animation Speed via Settings. 2014-03-11 17:41:41 -07:00
divecartesianaxis.cpp Profile2: fix some initializer list order warnings 2014-03-10 09:01:58 -07:00
divecartesianaxis.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diveeventitem.cpp New profile: fix event hiding logic 2014-03-16 15:11:35 -07:00
diveeventitem.h New profile: fix event hiding logic 2014-03-16 15:11:35 -07:00
divelineitem.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divelineitem.h Put include guard to every header 2014-02-11 12:37:01 -08:00
divepixmapitem.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divepixmapitem.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diveplotdatamodel.cpp Be more careful about dive computer selection 2014-03-17 10:53:49 -07:00
diveplotdatamodel.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diveprofileitem.cpp Bugfix: generalize pp graphs to allow for multi over-threshold periods 2014-03-15 12:07:34 -07:00
diveprofileitem.h Bugfix: generalize pp graphs to allow for multi over-threshold periods 2014-03-15 12:07:34 -07:00
diverectitem.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
diverectitem.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divetextitem.cpp Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divetextitem.h Massive automated whitespace cleanup 2014-02-27 20:09:57 -08:00
divetooltipitem.cpp New profile: fix Information overlay location 2014-03-13 10:28:15 -07:00
divetooltipitem.h Remove a Lot of Dead Code. 2014-03-07 08:56:06 -08:00
profilewidget2.cpp Be more careful about dive computer selection 2014-03-17 10:53:49 -07:00
profilewidget2.h New profile: add event manipulation to context menu 2014-03-15 21:12:34 -07:00
ruleritem.cpp Ruler: change how the ruler text drawing works 2014-03-12 11:24:20 -07:00
ruleritem.h Ruler: change how the ruler text drawing works 2014-03-12 11:24:20 -07:00