Use ternary to return a multiple choice

Authored by Tomaz Canabrava <tcanabraba@kde.org> on Dec 12 2019, 5:46 PM.