initialize project fields before adding to panel
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 22 May 2008 19:29:32 +0000 (19:29 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 22 May 2008 19:29:32 +0000 (19:29 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@930 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/jsite/gui/SwingInterface.java

index 9d31479..b32694c 100644 (file)
@@ -808,9 +808,9 @@ public class SwingInterface implements CoreListener, LoggingListener {
        private void addProject() {
                try {
                        Project project = core.createProject();
-                       mainWindow.addProject(project, true);
                        project.setName(I18n.get("general.newProject.name"));
                        project.setDescription(I18n.get("general.newProject.description", new Date()));
+                       mainWindow.addProject(project, true);
                } catch (JSiteException nne1) {
                        /* TODO - add i18n */
                        JOptionPane.showMessageDialog(mainWindow, I18n.get(""), I18n.get(""), JOptionPane.ERROR_MESSAGE);