From: David ‘Bombe’ Roden Date: Sat, 17 Mar 2012 02:06:47 +0000 (+0100) Subject: Don’t update the progress bar if the progress is 0. X-Git-Tag: 0.10-rc1~35 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bd615d3dd52810ec4fb8932c1c3fb75e003f99ba;p=jSite.git Don’t update the progress bar if the progress is 0. --- diff --git a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java index 66a0c0d..99b2b81 100644 --- a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java @@ -387,6 +387,9 @@ public class ProjectInsertPage extends TWizardPage implements InsertListener, Cl @SuppressWarnings("synthetic-access") public void run() { + if (total == 0) { + return; + } progressBar.setMaximum(total); progressBar.setValue(succeeded + failed + fatal); int progress = (succeeded + failed + fatal) * 100 / total;