Reset selected item to enable re-opening of proposal details

This commit is contained in:
Christoph Atteneder 2019-03-28 11:40:34 +01:00
parent b0226ef576
commit 1ff3013a0b
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -127,7 +127,8 @@ public class VoteResultView extends ActivatableView<GridPane, Void> implements D
private final BsqFormatter bsqFormatter;
private final MyProposalListService myProposalListService;
private final MyBlindVoteListService myBlindVoteListService;
private ProposalResultsWindow proposalResultsWindow;
private final ProposalResultsWindow proposalResultsWindow;
private Button exportButton;
private int gridRow = 0;
@ -192,6 +193,8 @@ public class VoteResultView extends ActivatableView<GridPane, Void> implements D
GridPane.setMargin(exportButton, new Insets(10, -10, -50, 0));
GridPane.setColumnSpan(exportButton, 2);
GridPane.setHalignment(exportButton, HPos.RIGHT);
proposalResultsWindow.onClose(() -> proposalsTableView.getSelectionModel().clearSelection());
}
@Override