Skip to content

Commit

Permalink
Merge pull request #260 from enigma-dev/stable
Browse files Browse the repository at this point in the history
Fixes ActionList lost changes. Josh likes it, he would prefer better variable names and final, but sees no reason to change it just for the purpose of changing it.
  • Loading branch information
RobertBColton committed Apr 7, 2016
2 parents 8d0d903 + 8fc9486 commit de7e635
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions org/lateralgm/components/ActionList.java
Expand Up @@ -193,11 +193,11 @@ public ActionListMouseListener(WeakReference<MDIFrame> parent)

public void mouseClicked(MouseEvent e)
{
if (e.getClickCount() != 2 || !(e.getSource() instanceof JList)) return;
JList l = (JList) e.getSource();
if (e.getClickCount() != 2 || !(e.getSource() instanceof ActionList)) return;
ActionList l = (ActionList) e.getSource();
Object o = l.getSelectedValue();

if (o == null && l.getModel().getSize() == 0)
if (o == null && l.getModel().getSize() == 0 && l.getActionContainer() != null)
{
o = new Action(LibManager.codeAction);
((ActionListModel) l.getModel()).add((Action) o);
Expand Down

0 comments on commit de7e635

Please sign in to comment.