diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-04-06 21:07:37 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-04-06 21:07:37 (GMT) |
commit | 3fa6694fe14ac40f726efbea9b6d7dbc9e9131ca (patch) | |
tree | d546d141a765596ffa32ca355632c62130fe3538 | |
parent | f26865e394b69b46fded45abd1b2e63230564f2e (diff) | |
download | swift-3fa6694fe14ac40f726efbea9b6d7dbc9e9131ca.zip swift-3fa6694fe14ac40f726efbea9b6d7dbc9e9131ca.tar.bz2 |
Only set permissions on Linux.
-rw-r--r-- | Swift/QtUI/QtSettingsProvider.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/QtSettingsProvider.cpp b/Swift/QtUI/QtSettingsProvider.cpp index a5642d7..b8ef9bb 100644 --- a/Swift/QtUI/QtSettingsProvider.cpp +++ b/Swift/QtUI/QtSettingsProvider.cpp @@ -82,10 +82,12 @@ QSettings* QtSettingsProvider::getQSettings() { } void QtSettingsProvider::updatePermissions() { +#if !defined(Q_WS_WIN) && !defined(Q_WS_MAC) QFile file(settings_.fileName()); if (file.exists()) { file.setPermissions(QFile::ReadOwner|QFile::WriteOwner); } +#endif } } |