diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-12-03 15:17:38 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-03 15:17:38 -0800 |
commit | 25bfcf5f6d0ed9a16705dcd2ae095daf6c852dd1 (patch) | |
tree | 38aa0a087bd390466f062cf50103742d0d99477f /qt-ui | |
parent | 7c8e95e1b5957abdf551bb9802d1aa56458e06f8 (diff) | |
download | subsurface-25bfcf5f6d0ed9a16705dcd2ae095daf6c852dd1.tar.gz |
Don't call fixup_dive when editing a trip
When editing a trip the key for the notesBackup is NULL. Don't call
fixup_dive() on that...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/maintab.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index dad1e8ec6..a36cb9130 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -614,7 +614,8 @@ void MainTab::acceptChanges() // each dive that was selected might have had the temperatures in its active divecomputer changed // so re-populate the temperatures - easiest way to do this is by calling fixup_dive Q_FOREACH(dive *d, notesBackup.keys()) { - fixup_dive(d); + if (d) + fixup_dive(d); } editMode = NONE; |