Skip to content

Commit a03b273

Browse files
committed
Don't show "no datasets" warning if user cancelled the resolver task.
1 parent 15df63c commit a03b273

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/creation/MasterDetailDialogPage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
import org.baderlab.csplugins.enrichmentmap.view.util.dialog.Message;
7676
import org.cytoscape.util.swing.IconManager;
7777
import org.cytoscape.work.FinishStatus;
78+
import org.cytoscape.work.FinishStatus.Type;
7879
import org.cytoscape.work.ObservableTask;
7980
import org.cytoscape.work.TaskIterator;
8081
import org.cytoscape.work.TaskObserver;
@@ -483,7 +484,7 @@ public void taskFinished(ObservableTask task) {
483484
public void allFinished(FinishStatus finishStatus) {
484485
scanButton.setEnabled(true);
485486
updateButtonEnablement();
486-
if(!foundDatasets) {
487+
if(!foundDatasets && finishStatus.getType() != Type.CANCELLED) {
487488
JOptionPane.showMessageDialog(callback.getDialogFrame(), "No data sets found", "EnrichmentMap", JOptionPane.WARNING_MESSAGE);
488489
}
489490
}

0 commit comments

Comments
 (0)