GUI2: fixed cppcheck warning