From: Steve Brokenshire Date: Sun, 10 Dec 2017 01:52:26 +0000 (+0000) Subject: frmPreferences: Implemented Win32 support X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=7f993de12e05025e284e0a00e64586d68ad10be7;p=xestiacalendar%2F.git frmPreferences: Implemented Win32 support --- diff --git a/source/forms/preferences/frmPreferences.cpp b/source/forms/preferences/frmPreferences.cpp index c1cd4fd..77abeae 100644 --- a/source/forms/preferences/frmPreferences.cpp +++ b/source/forms/preferences/frmPreferences.cpp @@ -328,11 +328,21 @@ void frmPreferences::DeleteAccount( wxCommandEvent& event ) // 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); +#endif + wxRmDir(accountDirDelFull); }