Fixes asked by ZappoMan on QSettings' commit.