From bac17d0052f41b44bda4b55997b786fab71735c0 Mon Sep 17 00:00:00 2001
From: Zeno Albisser <zeno.albisser@digia.com>
Date: Mon, 23 Dec 2013 13:34:43 +0100
Subject: [PATCH] quicknanobrowser: reset progress bar when reaching 100%

Change-Id: I146df83948017b5ad72e40d16a8cc7105691c309
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
---
 examples/quick/quicknanobrowser/quickwindow.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/quick/quicknanobrowser/quickwindow.qml b/examples/quick/quicknanobrowser/quickwindow.qml
index 7ef33c14e..b99b6ff25 100644
--- a/examples/quick/quicknanobrowser/quickwindow.qml
+++ b/examples/quick/quicknanobrowser/quickwindow.qml
@@ -139,7 +139,7 @@ ApplicationWindow {
                 z: -2;
                 minimumValue: 0
                 maximumValue: 100
-                value: tabs.currentView && tabs.currentView.loadProgress
+                value: (tabs.currentView && tabs.currentView.loadProgress < 100) ? tabs.currentView.loadProgress : 0
             }
     }
 
-- 
GitLab