From 2232de4f81b6e7d8a546625b87da7a80ab009982 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Fri, 21 Jul 2017 20:33:58 +0100 Subject: [PATCH] defaults: Fixed issue with creating/editing/deleting default account calendars --- source/common/defaults.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source/common/defaults.cpp b/source/common/defaults.cpp index faac599..17daf9e 100644 --- a/source/common/defaults.cpp +++ b/source/common/defaults.cpp @@ -47,7 +47,7 @@ void SetupDefaultCalendar(){ defaultLocalDir.Clear(); defaultLocalDir.Append(wxString::FromUTF8(getenv("HOME"))); defaultLocalDir.Append(wxT("/.xestiacal/accounts/")); - defaultLocalDir.Append(wxT("Default.local")); + defaultLocalDir.Append(wxT("Default.Local")); #endif @@ -57,8 +57,16 @@ void SetupDefaultCalendar(){ } + wxFile defaultCalendarDB; + +#if defined(__WIN32__) + defaultCalendarDB.Create(defaultLocalDir + "\\calendarlist.db", false, wxPOSIX_USER_READ|wxPOSIX_USER_WRITE|wxPOSIX_GROUP_READ); +#else + defaultCalendarDB.Create(defaultLocalDir + "/calendarlist.db", false, wxPOSIX_USER_READ|wxPOSIX_USER_WRITE|wxPOSIX_GROUP_READ); +#endif + } - + } void SetupDefaultSettings(){ -- 2.39.5