Skip to content

Commit

Permalink
Add missing poll m_finished check to getExpiringPollsNotNotified()
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescowens committed Dec 11, 2023
1 parent f5aa2b1 commit 8477d94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qt/voting/votingmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ QStringList VotingModel::getExpiringPollsNotNotified()

// Populate the list and mark the poll items included in the list m_expire_notified true.
for (auto& poll : m_pollitems) {
if (now.msecsTo(poll.second.m_expiration) <= poll_expire_warning
if (!poll.second.m_finished
&& now.msecsTo(poll.second.m_expiration) <= poll_expire_warning
&& !poll.second.m_expire_notified
&& !poll.second.m_self_voted) {
expiring_polls << poll.second.m_title;
Expand Down

0 comments on commit 8477d94

Please sign in to comment.