Skip to content

Commit f2b924e

Browse files
Merge pull request #577 from mxaddict/added-a-missing-lock-cfund-details-dialog
[cfund] Added a lock (Crashed the wallet when voting from details dialog)
2 parents 0f7c6c7 + b32d9c7 commit f2b924e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qt/communityfunddisplaydetailed.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ void CommunityFundDisplayDetailed::setProposalLabels() const
184184

185185
void CommunityFundDisplayDetailed::click_buttonBoxYesNoVote(QAbstractButton *button)
186186
{
187+
// Make sure we have a lock
188+
LOCK(cs_main);
189+
187190
//cast the vote
188191
bool duplicate = false;
189192

0 commit comments

Comments
 (0)