diff -r ec6b4118e7b1 -r 6a2ecad333da QTfrontend/ui/widget/frameTeam.cpp --- a/QTfrontend/ui/widget/frameTeam.cpp Tue May 01 16:20:12 2012 +0200 +++ b/QTfrontend/ui/widget/frameTeam.cpp Tue May 01 16:16:09 2012 +0200 @@ -63,7 +63,10 @@ { int idx = availableColors.indexOf(currentColor); - idx = ++idx % availableColors.size(); + idx++; + + if (idx >= availableColors.size()) + idx = 0; return availableColors.at(idx); }