From: David ‘Bombe’ Roden Date: Thu, 22 May 2008 19:29:32 +0000 (+0000) Subject: initialize project fields before adding to panel X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8b438ccac30e7dc3415011ee2b61591cbd2d9ba8;p=jSite2.git initialize project fields before adding to panel git-svn-id: http://trooper/svn/projects/jSite/trunk@930 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/jsite/gui/SwingInterface.java b/src/net/pterodactylus/jsite/gui/SwingInterface.java index 9d31479..b32694c 100644 --- a/src/net/pterodactylus/jsite/gui/SwingInterface.java +++ b/src/net/pterodactylus/jsite/gui/SwingInterface.java @@ -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);