diff options
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/diveeventitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp index 6001ef0ea..ecd64aba0 100644 --- a/profile-widget/diveeventitem.cpp +++ b/profile-widget/diveeventitem.cpp @@ -262,7 +262,7 @@ int DiveEventItem::depthAtTime(int time) { QModelIndexList result = dataModel->match(dataModel->index(0, DivePlotDataModel::TIME), Qt::DisplayRole, time); if (result.isEmpty()) { - Q_ASSERT("can't find a spot in the dataModel"); + qWarning("can't find a spot in the dataModel"); hide(); return DEPTH_NOT_FOUND; } @@ -276,7 +276,7 @@ void DiveEventItem::recalculatePos(int speed) QModelIndexList result = dataModel->match(dataModel->index(0, DivePlotDataModel::TIME), Qt::DisplayRole, internalEvent->time.seconds); if (result.isEmpty()) { - Q_ASSERT("can't find a spot in the dataModel"); + qWarning("can't find a spot in the dataModel"); hide(); return; } |