Fixed a QSettings issue with OS X.