diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp index 2488284fb..f149417c9 100644 --- a/profile-widget/diveeventitem.cpp +++ b/profile-widget/diveeventitem.cpp @@ -229,12 +229,6 @@ void DiveEventItem::recalculatePos(int speed) if (!ev) return; - QModelIndexList result = dataModel->match(dataModel->index(0, DivePlotDataModel::TIME), Qt::DisplayRole, ev->time.seconds); - if (result.isEmpty()) { - qWarning("can't find a spot in the dataModel"); - hide(); - return; - } int depth = depthAtTime(*dataModel, ev->time.seconds); if (depth == DEPTH_NOT_FOUND) { hide();