Settings: fix autounload handling

The QVariant to enum metatype conversion magick doesn't work. Use good
old static_cast instead :-/