From: Steve Brokenshire Date: Mon, 30 Nov 2015 13:11:37 +0000 (+0000) Subject: Removed and updated comments in LoadPreferences. X-Git-Tag: release-0.06~7 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=7bab37a4219b657a5adc432e039075fc61345c61;p=xestiaab%2F.git Removed and updated comments in LoadPreferences. --- 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){