Skip to content

Commit

Permalink
Fixes ActionList lost changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertBColton committed Apr 7, 2016
1 parent 8d0d903 commit 8fc9486
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 8fc9486

Please sign in to comment.