aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-11 22:46:00 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-11 22:46:00 -0800
commitd877e13e0a83203926bf05ee64d3e9589b750aac (patch)
tree9cc22257e8b0894e4ce80afac47a7ecfe8461ea4 /qt-mobile/qml/DiveList.qml
parentdbc96b1db39b18efdb0f75223743a5e835dd8d0b (diff)
downloadsubsurface-d877e13e0a83203926bf05ee64d3e9589b750aac.tar.gz
QML UI: even with valid credentials, don't show empty dive list
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveList.qml')
-rw-r--r--qt-mobile/qml/DiveList.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml
index a7a7a1e53..403cb6846 100644
--- a/qt-mobile/qml/DiveList.qml
+++ b/qt-mobile/qml/DiveList.qml
@@ -187,7 +187,7 @@ MobileComponents.Page {
ScrollView {
id: startPageWrapper
anchors.fill: parent
- opacity: (credentialStatus == QMLManager.VALID || credentialStatus == QMLManager.VALID_EMAIL) ? 0 : 1
+ opacity: (diveListView.count > 0 && (credentialStatus == QMLManager.VALID || credentialStatus == QMLManager.VALID_EMAIL)) ? 0 : 1
visible: opacity > 0
Behavior on opacity { NumberAnimation { duration: MobileComponents.Units.shortDuration } }
StartPage {