GUI: Fix const qualifier on return type warning.