Commit f2b01f69 authored by Stefan Yohansson Areeira Pinto's avatar Stefan Yohansson Areeira Pinto Committed by Albert Astals Cid

Don't let people add more balls when the repository is empty

REVIEW: 129015
parent 0ebaf92c
......@@ -542,7 +542,7 @@ void KBBScalableGraphicWidget::switchBall()
{
if ((m_balls->containsVisible(m_cursor->boxPosition())) || (m_ballsUnsure->containsVisible(m_cursor->boxPosition())))
removeBall(m_cursor->boxPosition());
else
else if (m_ballRepository->ballToTake() != KBBGraphicsItemSet::NO_INDEX)
addBall(m_cursor->boxPosition());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment