// Go through the list of contacts for the account and find the matching UID.
// If contact with UID doesn't match then say (unknown contact).
- XABViewMode XVMData = MainPtr->GetViewMode();
+ XABViewMode XVMData;
+ if (StartupEditMode == FALSE){
+ XVMData = MainPtr->GetViewMode();
+ }
wxString AccountDirFinal = GetAccountDir(wxSContactAccount, FALSE);