diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-27 05:51:14 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-27 15:05:37 -0700 |
commit | 3946f83ff2ab1e3d51e62654dc23df01bd1222c6 (patch) | |
tree | 46a72e581afaff2bfdc9c5350910b4fc7f95494d | |
parent | 15431f418e724c0f729dd2ffa140a0b7efda23e9 (diff) | |
download | subsurface-3946f83ff2ab1e3d51e62654dc23df01bd1222c6.tar.gz |
only set index if we have specific target
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 2 |
1 files changed, 0 insertions, 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.")); |