Changeset f4f42a0 in subsurface for qt-models


Ignore:
Timestamp:
Jun 29, 2017, 3:10:42 PM (4 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
a4d4d1c
Parents:
282698e
git-author:
Dirk Hohndel <dirk@…> (06/29/17 14:27:45)
git-committer:
Dirk Hohndel <dirk@…> (06/29/17 15:10:42)
Message:

Don't crash trying to record zero dives

If the user clicks "Accept" when no dives were downloaded we would otherwise
dereference unitialized memory.

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qt-models/diveimportedmodel.cpp

    r29741f0 rf4f42a0  
    164164void DiveImportedModel::recordDives()
    165165{
     166        if (diveTable->nr == 0)
     167                // nothing to do, just exit
     168                return;
     169
    166170        // walk the table of imported dives and record the ones that the user picked
    167171        // clearing out the table as we go
Note: See TracChangeset for help on using the changeset viewer.