Fire the “insert finished” event after updating the project.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 28 Jan 2010 09:04:09 +0000 (10:04 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 28 Jan 2010 09:04:09 +0000 (10:04 +0100)
src/de/todesbaum/jsite/application/ProjectInserter.java

index 48fd36b..d3066a0 100644 (file)
@@ -549,7 +549,6 @@ public class ProjectInserter implements FileScannerListener, Runnable {
                }
 
                /* post-insert work */
-               fireProjectInsertFinished(success, disconnected ? new IOException("Connection terminated") : null);
                if (success) {
                        @SuppressWarnings("null")
                        String editionPart = finalURI.substring(finalURI.lastIndexOf('/') + 1);
@@ -557,6 +556,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
                        project.setEdition(newEdition);
                        project.setLastInsertionTime(System.currentTimeMillis());
                }
+               fireProjectInsertFinished(success, disconnected ? new IOException("Connection terminated") : null);
        }
 
        //