From 4636fcc83469309362c3925ef80ade589ea409a0 Mon Sep 17 00:00:00 2001
From: Dirk Hohndel <dirk@hohndel.org>
Date: Wed, 31 Oct 2018 12:52:51 -0700
Subject: Mobile/filtering: don't show the filter line when pulling divelist
 down

Even though the height was zero, when pulling down the dive list for refresh,
the filter input line would still be visible. With this fix it no longer is.

Also remove unused property.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
---
 mobile-widgets/qml/DiveList.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 89b0c679f..6ffeee020 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -367,7 +367,7 @@ Kirigami.ScrollablePage {
 		id: filterHeader
 		Rectangle {
 			id: filterRectangle
-			default property alias data: filterBar.data
+			visible: filterBar.height > 0
 			implicitHeight: filterBar.implicitHeight
 			implicitWidth: filterBar.implicitWidth
 			height: filterBar.height
-- 
cgit v1.2.3-70-g09d2