* Bug 16677 fixed: offline, atomsInstall() was flashing the console
[scilab.git] / scilab / modules / atoms / macros / atoms_internals / atomsUpdateProgressBar.sci
index 93f37f3..33bd81b 100644 (file)
 // and continues to be available under such terms.
 // For more information, see the COPYING file which you should have received
 // along with this program.
-// === LICENSE_END ===
 //
 //
 
 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