summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-22 09:20:42 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-22 09:20:42 (GMT)
commit279761bbf59a5129793896dcc8fc2bc04955b1a4 (patch)
tree2e2ea14473ff4bb4ed78a24df31b9374a8b94fc8 /Swiften/Application/Windows
parent30e996565f292159a088d6fb9f735f776fe5fed3 (diff)
downloadswift-279761bbf59a5129793896dcc8fc2bc04955b1a4.zip
swift-279761bbf59a5129793896dcc8fc2bc04955b1a4.tar.bz2
Use APPDATA dir on Windows for storing settings.
Diffstat (limited to 'Swiften/Application/Windows')
-rw-r--r--Swiften/Application/Windows/WindowsApplication.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Application/Windows/WindowsApplication.h b/Swiften/Application/Windows/WindowsApplication.h
index d31691c..365157b 100644
--- a/Swiften/Application/Windows/WindowsApplication.h
+++ b/Swiften/Application/Windows/WindowsApplication.h
@@ -15,8 +15,8 @@ namespace Swift {
}
boost::filesystem::path getSettingsDir() const {
- char* homeDirRaw = getenv("APPDATA");
- boost::filesystem::path result(boost::filesystem::path(getHomeDir()) / getName().getUTF8String());
+ char* appDirRaw = getenv("APPDATA");
+ boost::filesystem::path result(boost::filesystem::path(appDirRaw) / getName().getUTF8String());
boost::filesystem::create_directory(result);
return result;
}