From 7f993de12e05025e284e0a00e64586d68ad10be7 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 10 Dec 2017 01:52:26 +0000 Subject: [PATCH] frmPreferences: Implemented Win32 support --- source/forms/preferences/frmPreferences.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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); } -- 2.39.5