* Bug 16677 fixed: offline, atomsInstall() was flashing the console
[scilab.git] / scilab / modules / atoms / macros / atoms_internals / atomsUpdateProgressBar.sci
index d6a08dc..33bd81b 100644 (file)
@@ -14,7 +14,7 @@
 //
 
 function atomsUpdateProgressBar(winId, value)
-    if (getscilabmode() <> "NWNI" & winId.type == "Waitbar")
+    if (getscilabmode() <> "NWNI" & winId <> [] & winId.type == "Waitbar")
         waitbar(value, winId);
     end
-endfunction
\ No newline at end of file
+endfunction