From d877e13e0a83203926bf05ee64d3e9589b750aac Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 11 Feb 2016 22:46:00 -0800 Subject: QML UI: even with valid credentials, don't show empty dive list Signed-off-by: Dirk Hohndel --- qt-mobile/qml/DiveList.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-mobile/qml/DiveList.qml') 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 { -- cgit v1.2.3-70-g09d2