make delete and clone buttons project specific
[jSite2.git] / src / net / pterodactylus / jsite / gui / ProjectPanel.java
index 837f5fe..73d901f 100644 (file)
@@ -211,8 +211,8 @@ public class ProjectPanel extends JPanel implements DocumentListener, I18nable {
                JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.TRAILING, 12, 12));
                buttonPanel.setBorder(BorderFactory.createEmptyBorder(-12, -12, -12, -12));
 
-               buttonPanel.add(new JButton(swingInterface.getDeleteProjectAction()));
-               buttonPanel.add(new JButton(swingInterface.getCloneProjectAction()));
+               buttonPanel.add(new JButton(swingInterface.getDeleteProjectAction(project)));
+               buttonPanel.add(new JButton(swingInterface.getCloneProjectAction(project)));
 
                return buttonPanel;
        }