[mac] use qsettings to store defaults, and fix related bug
Merge pull request #197 from haiwen/maintain_patch_2

[mac] use qsettings to store defaults, and fix related bug