File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
app/logbook/olog/ui/src/main/java/org/phoebus/logbook/olog/ui/write Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 3535import javafx .scene .layout .VBox ;
3636import javafx .scene .paint .Color ;
3737import org .phoebus .framework .jobs .JobManager ;
38+ import org .phoebus .framework .selection .Selection ;
39+ import org .phoebus .framework .selection .SelectionService ;
3840import org .phoebus .logbook .*;
3941import org .phoebus .logbook .olog .ui .HelpViewer ;
4042import org .phoebus .logbook .olog .ui .LogbookUIPreferences ;
@@ -376,10 +378,14 @@ public void onChanged(Change<? extends String> change) {
376378 }
377379
378380 /**
379- * Handler for Cancel button
381+ * Handler for Cancel button. Note that any selections in the {@link SelectionService} are
382+ * cleared to prevent next launch of {@link org.phoebus.logbook.olog.ui.menu.SendToLogBookApp}
383+ * to pick them up.
380384 */
381385 @ FXML
382386 public void cancel () {
387+ // Need to clear selections.
388+ SelectionService .getInstance ().clearSelection ("" );
383389 ((LogEntryEditorStage ) cancelButton .getScene ().getWindow ()).handleCloseEditor (isDirty , root );
384390 }
385391
You can’t perform that action at this time.
0 commit comments