/[svn]/jsampler/trunk/src/org/jsampler/task/UpdateChannels.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/task/UpdateChannels.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1203 by iliev, Mon Apr 2 21:18:31 2007 UTC revision 1204 by iliev, Thu May 24 21:43:45 2007 UTC
# Line 53  public class UpdateChannels extends Enha Line 53  public class UpdateChannels extends Enha
53                                                    
54                          boolean found = false;                          boolean found = false;
55                                                                    
56                          for(SamplerChannelModel m : sm.getChannelModels()) {                          for(SamplerChannelModel m : sm.getChannels()) {
57                                  for(int i = 0; i < chnIDs.length; i++) {                                  for(int i = 0; i < chnIDs.length; i++) {
58                                          if(m.getChannelId() == chnIDs[i]) {                                          if(m.getChannelId() == chnIDs[i]) {
59                                                  chnIDs[i] = -1;                                                  chnIDs[i] = -1;
# Line 61  public class UpdateChannels extends Enha Line 61  public class UpdateChannels extends Enha
61                                          }                                          }
62                                  }                                  }
63                                                                    
64                                  if(!found) sm.removeChannel(m.getChannelId());                                  if(!found) sm.removeChannelById(m.getChannelId());
65                                  found = false;                                  found = false;
66                          }                          }
67                                                    

Legend:
Removed from v.1203  
changed lines
  Added in v.1204

  ViewVC Help
Powered by ViewVC