Avoid problematic ternary operator (http://forum.kde.org/viewtopic.php?f=74&t=109486)