From 3946f83ff2ab1e3d51e62654dc23df01bd1222c6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 27 Apr 2016 05:51:14 -0700 Subject: only set index if we have specific target Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 6a5cd9281..301dd22dc 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -433,8 +433,6 @@ void QMLManager::consumeFinishedLoad(timestamp_t currentDiveTimestamp) DiveListModel::instance()->addAllDives(); if (currentDiveTimestamp) setUpdateSelectedDive(dlSortModel->getIdxForId(get_dive_id_closest_to(currentDiveTimestamp))); - else - setUpdateSelectedDive(0); appendTextToLog(QStringLiteral("%1 dives loaded").arg(dive_table.nr)); if (dive_table.nr == 0) setStartPageText(tr("Cloud storage open successfully. No dives in dive list.")); -- cgit v1.2.3-70-g09d2