Lubomir I. Ivanov
e3118d915c
divelist: prevent a crash for missing column width
...
The `static int defaultWidth[]` definition in divelistview.cpp
could potentially end up missing an element which can later result
in out-of-bounds access when iterating through the list of
columns and updating their widths.
Add a couple of methods in DiveTripModel for setting and getting
the widths and use those. The default values are now pre-set in a
QVector in the DiveTripModel() constructor.
Throw warnings if out-of-bounds columns are requested.
Reported-by: Gaetan Bisson <bisson@archlinux.org>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-10-03 15:43:03 -07:00
..
2015-10-30 10:36:49 -07:00
2017-10-02 08:54:03 -07:00
2017-09-20 08:54:41 -07:00
2017-04-29 13:32:55 -07:00
2017-10-01 23:55:37 +03:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-03-07 21:45:05 -08:00
2017-09-17 09:58:11 -07:00
2017-04-29 13:32:55 -07:00
2015-10-30 10:36:49 -07:00
2017-09-16 08:36:30 -07:00
2017-08-01 13:39:35 -07:00
2017-06-21 18:43:15 -07:00
2017-08-01 13:39:35 -07:00
2015-10-30 10:36:49 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2015-10-30 10:36:49 -07:00
2017-10-03 15:43:03 -07:00
2017-10-03 15:43:03 -07:00
2017-08-26 14:48:05 -07:00
2017-04-29 13:32:55 -07:00
2016-10-11 22:00:08 -07:00
2017-09-11 07:21:43 -07:00
2017-04-29 13:32:55 -07:00
2016-04-04 22:33:58 -07:00
2017-05-06 11:12:28 -07:00
2017-04-29 13:32:55 -07:00
2017-09-20 08:54:41 -07:00
2017-04-29 13:32:55 -07:00
2016-04-04 22:33:58 -07:00
2017-04-29 13:32:55 -07:00
2017-05-27 11:07:20 -07:00
2015-10-30 10:36:49 -07:00
2017-09-17 15:04:14 -07:00
2017-05-27 11:07:19 -07:00
2017-09-17 15:04:14 -07:00
2015-10-30 10:36:49 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2015-10-30 10:36:49 -07:00
2017-10-02 09:52:54 -07:00
2017-10-02 09:52:54 -07:00
2017-10-02 09:52:46 -07:00
2017-10-02 08:54:03 -07:00
2017-07-28 07:31:11 -07:00
2017-07-28 07:31:11 -07:00
2017-07-28 22:06:34 -07:00
2017-07-28 22:06:34 -07:00
2017-09-04 07:46:35 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-02-24 01:06:09 -08:00
2017-09-20 08:54:41 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2015-10-30 10:36:49 -07:00
2016-12-27 13:10:18 -08:00
2015-10-30 10:36:49 -07:00
2017-03-04 12:04:20 -08:00
2017-04-30 12:44:58 -07:00
2015-10-30 10:36:49 -07:00
2017-06-11 15:57:08 -07:00
2017-05-01 21:23:42 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-10-01 23:55:37 +03:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2015-10-30 10:36:49 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-03-12 09:19:03 -07:00
2017-09-20 08:54:41 -07:00
2017-05-26 15:50:52 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-01-12 14:06:54 -08:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2017-03-06 06:40:00 -08:00
2015-10-30 10:36:49 -07:00