From 8b438ccac30e7dc3415011ee2b61591cbd2d9ba8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 22 May 2008 19:29:32 +0000 Subject: [PATCH] initialize project fields before adding to panel git-svn-id: http://trooper/svn/projects/jSite/trunk@930 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/jsite/gui/SwingInterface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4