Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
defaults: Fixed issue with creating/editing/deleting default account calendars
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Fri, 21 Jul 2017 19:33:58 +0000 (20:33 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Fri, 21 Jul 2017 19:33:58 +0000 (20:33 +0100)
source/common/defaults.cpp

index faac599..17daf9e 100644 (file)
@@ -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(){
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy