diff --git a/libs/BeetRoundCore/model/tablemodel.cpp b/libs/BeetRoundCore/model/tablemodel.cpp index 8fac24f..8e638e3 100644 --- a/libs/BeetRoundCore/model/tablemodel.cpp +++ b/libs/BeetRoundCore/model/tablemodel.cpp @@ -309,9 +309,18 @@ int TableModel::nExpectedBiddings() const { int result = 0; for (auto i = m_items.begin(), end = m_items.end(); i != end; ++i) { const QString biddingType = (*i)->data(BiddingTypeRole).toString(); - if (!biddingType.isEmpty()) { - result++; + if (biddingType.isEmpty()) { + continue; } + const QString shareType = (*i)->data(ShareTypeRole).toString(); + if (shareType.isEmpty() || shareType == "erarbeitet") { + continue; + } + const double shareAmount = (*i)->data(ShareAmountRole).toDouble(); + if (shareAmount == 0.0) { + continue; + } + result++; } return result; }