summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlprofile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile/qmlprofile.cpp')
-rw-r--r--qt-mobile/qmlprofile.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/qt-mobile/qmlprofile.cpp b/qt-mobile/qmlprofile.cpp
index 1ad84e735..67eb1328a 100644
--- a/qt-mobile/qmlprofile.cpp
+++ b/qt-mobile/qmlprofile.cpp
@@ -30,13 +30,9 @@ QString QMLProfile::diveId() const
void QMLProfile::setDiveId(const QString &diveId)
{
m_diveId = diveId;
- int no = -1;
struct dive *d = get_dive_by_uniq_id(m_diveId.toInt());
- if (d)
- no = d->number;
if (m_diveId.toInt() < 1)
return;
-
if (!d)
return;