summaryrefslogtreecommitdiffstats
path: root/src/JSObject.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-05 16:09:54 +0100
committerJonathan Bauer2011-03-05 16:09:54 +0100
commitcf9609c876318f0c27914a723af915a9acfdbcc3 (patch)
treefcf2b5477835528b00c7ba3cacd7cd240ae57e86 /src/JSObject.cpp
parentwebkitTest.html: resetting of progress bar when download finishes. (diff)
downloadfbgui-cf9609c876318f0c27914a723af915a9acfdbcc3.tar.gz
fbgui-cf9609c876318f0c27914a723af915a9acfdbcc3.tar.xz
fbgui-cf9609c876318f0c27914a723af915a9acfdbcc3.zip
Command line options parsing moved to its own class, in preparation for Settings
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);
}