From: David ‘Bombe’ Roden Date: Wed, 23 Dec 2015 23:01:41 +0000 (+0100) Subject: Synchronize on projects when creating model X-Git-Tag: 0.13^2~21 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=46bf2a35ba55161bd274e65e6eb729c27eb11f6b;p=jSite.git Synchronize on projects when creating model --- diff --git a/src/main/java/de/todesbaum/jsite/gui/KeyDialog.java b/src/main/java/de/todesbaum/jsite/gui/KeyDialog.java index 6f2c38e..9797708 100644 --- a/src/main/java/de/todesbaum/jsite/gui/KeyDialog.java +++ b/src/main/java/de/todesbaum/jsite/gui/KeyDialog.java @@ -348,7 +348,9 @@ public class KeyDialog extends JDialog { final JLabel projectLabel = new JLabel(I18n.getMessage("jsite.key-dialog.label.project")); contentPanel.add(projectLabel, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.NONE, new Insets(12, 18, 0, 0), 0, 0)); - projectsComboBox = new JComboBox(new ComboBoxModelList(projects)); + synchronized (projects) { + projectsComboBox = new JComboBox(new ComboBoxModelList(projects)); + } projectsComboBox.addActionListener(new ActionListener() { @Override