summaryrefslogtreecommitdiffstats
path: root/src/JSObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/JSObject.cpp')
-rw-r--r--src/JSObject.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/JSObject.cpp b/src/JSObject.cpp
index 5d29d72..3624a89 100644
--- a/src/JSObject.cpp
+++ b/src/JSObject.cpp
@@ -28,6 +28,8 @@ void JSObject::startDownload(QString filename)
//-------------------------------------------------------------------------------------------------------
void JSObject::updateProgress(int i)
{
+ if (i == 0)
+ return;
QString code = QString("updateProgress(\%1)").arg(i);
owner->evaluateJavaScript(code);
}