fix ITx selection issue

This commit is contained in:
Eyck Jentzsch 2020-07-26 15:07:23 +02:00
parent 796a04b981
commit 61c2102ab7
2 changed files with 4 additions and 5 deletions

View File

@ -725,13 +725,13 @@ public class WaveformView implements IWaveformView {
streams.add(trackEntry); streams.add(trackEntry);
} }
currentTxSelection = txSel; currentTxSelection = txSel;
if(trackEntry!=null) { // if(trackEntry!=null) {
currentWaveformSelection.add((TrackEntry)sel); // currentWaveformSelection.add((TrackEntry)sel);
} // }
selectionChanged = true; selectionChanged = true;
} else if (sel instanceof TrackEntry && !currentWaveformSelection.contains(sel)) { } else if (sel instanceof TrackEntry && !currentWaveformSelection.contains(sel)) {
currentWaveformSelection.add((TrackEntry)sel); currentWaveformSelection.add((TrackEntry)sel);
if(currentTxSelection!=null) if(currentTxSelection!=null && !selectionChanged)
currentTxSelection=null; currentTxSelection=null;
selectionChanged = true; selectionChanged = true;
} }

View File

@ -21,7 +21,6 @@ import com.google.common.collect.Collections2;
import com.minres.scviewer.database.IHierNode; import com.minres.scviewer.database.IHierNode;
import com.minres.scviewer.database.IWaveform; import com.minres.scviewer.database.IWaveform;
import com.minres.scviewer.database.IWaveformDb; import com.minres.scviewer.database.IWaveformDb;
import com.minres.scviewer.e4.application.parts.LoadingWaveformDb;
/** /**
* The Class TxDbContentProvider providing the tree content of a database for the respective viewer. * The Class TxDbContentProvider providing the tree content of a database for the respective viewer.