Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmPreferences: Implemented Win32 support
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 10 Dec 2017 01:52:26 +0000 (01:52 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 10 Dec 2017 01:52:26 +0000 (01:52 +0000)
source/forms/preferences/frmPreferences.cpp

index c1cd4fd..77abeae 100644 (file)
@@ -328,11 +328,21 @@ void frmPreferences::DeleteAccount( wxCommandEvent& event )
                // Delete the directory that contains the account information.
        
                if (!accountDirFull.IsEmpty()){
                // Delete the directory that contains the account information.
        
                if (!accountDirFull.IsEmpty()){
-       
+
+#if defined(__WIN32__)
+
+                       accountDirDelFull.Append(GetUserDir());
+                       accountDirDelFull.Append(wxT("\\accounts\\"));
+                       accountDirDelFull.Append(accountDirFull);
+
+#else
+
                        accountDirDelFull.Append(wxString::FromUTF8(getenv("HOME")));
                        accountDirDelFull.Append(wxT("/.xestiacal/accounts/"));
                        accountDirDelFull.Append(accountDirFull);
        
                        accountDirDelFull.Append(wxString::FromUTF8(getenv("HOME")));
                        accountDirDelFull.Append(wxT("/.xestiacal/accounts/"));
                        accountDirDelFull.Append(accountDirFull);
        
+#endif
+
                        wxRmDir(accountDirDelFull);
        
                }
                        wxRmDir(accountDirDelFull);
        
                }
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