Add missing check to prevent re-selection of selected select-proposal-window that was just closed

This commit is contained in:
Christoph Atteneder 2019-04-11 17:37:34 +02:00
parent 781194c32f
commit a16428e9c1
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -587,7 +587,10 @@ public class ProposalsView extends ActivatableView<GridPane, Void> implements Bs
break;
}
if (selectedItem == null && listItems.size() > 0 && selectProposalWindow.isDisplayed()) {
if (selectedItem == null &&
listItems.size() > 0 &&
selectProposalWindow.isDisplayed() &&
!shownVoteOnProposalWindowForTxId.equals("")) {
Proposal proposal = selectProposalWindow.getProposal();
Optional<ProposalsListItem> proposalsListItem = listItems.stream()