From 7bab37a4219b657a5adc432e039075fc61345c61 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 30 Nov 2015 13:11:37 +0000 Subject: [PATCH] Removed and updated comments in LoadPreferences. --- source/frmMain.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/source/frmMain.cpp b/source/frmMain.cpp index fcb9952..a41a629 100644 --- a/source/frmMain.cpp +++ b/source/frmMain.cpp @@ -1429,12 +1429,6 @@ void frmMain::LoadPreferences(){ AccountSyncTimers.clear(); - /* - for (int i = (preferences.accounts.GetCount() - 1); i > 0; --i){ - treAccounts->AppendItem(RootNode, preferences.accounts.GetAccountName(i)); - } - */ - wxString AccDir; wxString AccDirFull; wxString AccDirFullSfx; @@ -1478,7 +1472,7 @@ void frmMain::LoadPreferences(){ if (preferences.accounts.GetAccountType(i) == wxT("CardDAV") || preferences.accounts.GetAccountType(i) == wxT("carddav")){ - // Check if the directory exists before doing anything. + // TODO: Check if the directory exists before doing anything. @@ -1514,8 +1508,7 @@ void frmMain::LoadPreferences(){ wxString vCardFilename; wxString vCardDataString; wxString vCardFilenameFull; - //bool ProcFiles = FALSE; - + bool ProcFiles = vcardaccdir.GetFirst(&vCardFilename, wxEmptyString, wxDIR_FILES); while(ProcFiles){ -- 2.39.5