fix trace add problem when only a track is selected
This commit is contained in:
		@@ -1013,8 +1013,17 @@ public class WaveformViewer implements IFileChangeListener, IPreferenceChangeLis
 | 
				
			|||||||
				} else {
 | 
									} else {
 | 
				
			||||||
					waveformPane.getStreamList().addAll(streams);
 | 
										waveformPane.getStreamList().addAll(streams);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 | 
								} else if(first instanceof TrackEntry) {
 | 
				
			||||||
 | 
									TrackEntry trackEntry = (TrackEntry) first;
 | 
				
			||||||
 | 
									if (insert) {
 | 
				
			||||||
 | 
										int index = waveformPane.getStreamList().indexOf(trackEntry);
 | 
				
			||||||
 | 
										waveformPane.getStreamList().addAll(index, streams);
 | 
				
			||||||
 | 
									} else {
 | 
				
			||||||
 | 
										waveformPane.getStreamList().addAll(streams);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		setFocus();
 | 
							setFocus();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user