Resolves issue with channel being deleted when disabled via context menu

on channel panel, or on channel node in configuration tree.
This commit is contained in:
denny
2015-11-22 12:50:35 -05:00
parent dc3bcfd404
commit 547da54340
3 changed files with 7 additions and 7 deletions

View File

@@ -24,6 +24,9 @@ import javax.swing.JMenu;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import source.tuner.TunerChannel;
import controller.ConfigurableNode;
import controller.site.SiteNode;
@@ -36,6 +39,8 @@ import controller.system.SystemNode;
public class ChannelNode extends ConfigurableNode implements ChannelEventListener
{
private static final long serialVersionUID = 1L;
private final static Logger mLog = LoggerFactory.getLogger( ChannelNode.class );
private static DecimalFormat sFORMAT = new DecimalFormat( "0.0000" );
@@ -84,12 +89,13 @@ public class ChannelNode extends ConfigurableNode implements ChannelEventListene
case CHANGE_SITE:
case CHANGE_SYSTEM:
case CHANNEL_ENABLED:
case CHANNEL_DISABLED:
case CHANNEL_PROCESSING_STARTED:
case CHANNEL_PROCESSING_STOPPED:
this.refresh();
break;
/* We're being deleted, so cleanup */
case CHANNEL_DISABLED:
case CHANNEL_DELETED:
delete();
break;
default: