diff options
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index e684255c3..3a62fb342 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -279,6 +279,12 @@ void QMLManager::loadDivesWithValidCredentials() void QMLManager::commitChanges(QString diveId, QString suit, QString buddy, QString diveMaster, QString notes) { struct dive *d = get_dive_by_uniq_id(diveId.toInt()); + qDebug() << diveId.toInt() << (d != 0 ? d->number : -1); + + if (!d) { + qDebug() << "don't touch this... no dive"; + return; + } bool diveChanged = false; if (!same_string(d->suit, suit.toUtf8().data())) { |