summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-04-06 21:07:37 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-04-06 21:07:37 (GMT)
commit3fa6694fe14ac40f726efbea9b6d7dbc9e9131ca (patch)
treed546d141a765596ffa32ca355632c62130fe3538 /Swift
parentf26865e394b69b46fded45abd1b2e63230564f2e (diff)
downloadswift-contrib-3fa6694fe14ac40f726efbea9b6d7dbc9e9131ca.zip
swift-contrib-3fa6694fe14ac40f726efbea9b6d7dbc9e9131ca.tar.bz2
Only set permissions on Linux.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtSettingsProvider.cpp2
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
}
}