Made QSettings only get created when filename is not "".