Fix PVS-Studio issue "src/kgrdialog.cpp:355: warning: V1048 The 'ans' variable was assigned the same value.".