Merge pull request #2700 from ripcurlx/fix-deselection-of-proposal

Add missing check to prevent re-selection of proposal
This commit is contained in:
Manfred Karrer 2019-04-11 12:18:08 -05:00 committed by GitHub
commit e6f12dab85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()