Skip to content

Commit

Permalink
Set dirty on manual peak deletion/merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Jan 20, 2022
1 parent b6b8703 commit 7f677a2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2018, 2021 Lablicate GmbH.
* Copyright (c) 2018, 2022 Lablicate GmbH.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down Expand Up @@ -513,6 +513,7 @@ private void deletePeaksOrIdentifications(Display display) {
chromatogramSelection.setSelectedScan(null);
chromatogramSelection.setSelectedIdentifiedScan(null);
chromatogramSelection.update(true);
chromatogramSelection.getChromatogram().setDirty(true);
}
}
//
Expand Down Expand Up @@ -668,6 +669,7 @@ private void propagateSelection(Display display) {
//
chromatogramSelection.setSelectedPeaks(selectedPeaks);
chromatogramSelection.setSelectedIdentifiedScans(selectedIdentifiedScans);
chromatogramSelection.getChromatogram().setDirty(true);
UpdateNotifierUI.update(display, IChemClipseEvents.TOPIC_EDITOR_CHROMATOGRAM_UPDATE, "Peak(s)/Scan(s) selection via the list.");
} else {
/*
Expand Down Expand Up @@ -791,6 +793,7 @@ public void widgetSelected(SelectionEvent e) {
*/
chromatogramMSD.addPeak(chromatogramPeakMSD);
chromatogramSelectionMSD.setSelectedPeak(chromatogramPeakMSD);
chromatogramMSD.setDirty(true);
updateChromatogramSelection();
//
UpdateNotifierUI.update(e.display, chromatogramPeakMSD);
Expand Down

0 comments on commit 7f677a2

Please sign in to comment.