Lubomir I. Ivanov 341eb05f83 MainWindow: prevent a possible crash on "re-plan"
MainWindow::on_actionReplanDive_triggered():

If a dive in the divelist does not have a "DC Model" for some reason,
selecting "re-plan" from the menu will pass a NULL value
current_dive->dc.model to strcmp() and break before the debug output.

To fix that we check if the said .model value is NULL.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-10-27 07:35:15 -07:00
..
2014-06-26 15:47:02 -07:00
2014-02-08 08:00:27 -08:00
2014-10-14 20:33:46 +02:00
2014-10-14 20:33:46 +02:00
2014-10-14 20:33:46 +02:00
2014-10-14 20:33:46 +02:00
2014-06-26 15:47:02 -07:00
2014-06-26 15:47:02 -07:00
2014-10-15 22:53:10 +02:00
2014-09-18 06:38:03 -07:00
2014-10-18 15:16:15 -07:00
2014-10-18 15:16:15 -07:00
2014-10-18 15:16:15 -07:00
2014-10-19 07:23:36 -07:00
2014-10-19 07:23:36 -07:00
2014-10-18 15:16:15 -07:00
2014-10-18 15:16:15 -07:00
2014-09-18 06:24:05 -07:00
2014-10-19 07:24:15 -07:00
2014-06-26 15:47:02 -07:00
2014-07-18 10:21:42 -07:00
2014-08-08 11:13:05 -07:00
2014-07-16 09:11:04 -07:00