From cf9609c876318f0c27914a723af915a9acfdbcc3 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Sat, 5 Mar 2011 16:09:54 +0100 Subject: Command line options parsing moved to its own class, in preparation for Settings --- src/JSObject.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/JSObject.cpp') 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); } -- cgit v1.2.3-55-g7522