aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2016-01-12 01:59:09 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2016-01-12 03:06:09 +0100
commitae0f680c6e9ffc7804b99fe5058ca7c135ce1e42 (patch)
treec9f133b52eae58371be773cca25dba198ad92e55
parent6540e95425eb4c8aad56c5c5388c25b2180817cb (diff)
downloadsubsurface-ae0f680c6e9ffc7804b99fe5058ca7c135ce1e42.tar.gz
Kill warning
Apparently parent.height is negative sometimes. Signed-off-by: Sebastian Kügler <sebas@kde.org>
-rw-r--r--qt-mobile/qml/GpsList.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-mobile/qml/GpsList.qml b/qt-mobile/qml/GpsList.qml
index 0ee654fc1..8e9349c3c 100644
--- a/qt-mobile/qml/GpsList.qml
+++ b/qt-mobile/qml/GpsList.qml
@@ -115,7 +115,7 @@ MobileComponents.Page {
delegate: gpsDelegate
boundsBehavior: Flickable.StopAtBounds
maximumFlickVelocity: parent.height * 5
- cacheBuffer: parent.height *5
+ cacheBuffer: Math.max(5000, parent.height * 5)
focus: true
clip: true
header: MobileComponents.Heading {