diff options
| author | Jonathan Bauer | 2011-03-05 16:09:54 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-05 16:09:54 +0100 |
| commit | cf9609c876318f0c27914a723af915a9acfdbcc3 (patch) | |
| tree | fcf2b5477835528b00c7ba3cacd7cd240ae57e86 /src/JSObject.cpp | |
| parent | webkitTest.html: resetting of progress bar when download finishes. (diff) | |
| download | fbgui-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.cpp | 2 |
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); } |
