- Timestamp:
- 07/09/07 21:40:14 (1 year ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Mulberry/branches/v4.1d1/Sources_Common/Mail/AddressBook/CAddressBookManager.cp
r86 r96 403 403 break; 404 404 } 405 } 405 } 406 406 } 407 407 … … 558 558 // Add to protos list 559 559 mProtos.push_back(proto); 560 }560 } 561 561 562 562 // Adjust indices to remove local/web … … 571 571 if (new_index < (long) mProtos.size() - 1 - proto_offset) 572 572 accts.insert(accts.begin() + new_index, acct); 573 else573 else 574 574 accts.push_back(acct); 575 575 CPreferences::sPrefs->mAddressAccounts.SetDirty(); … … 587 587 if (result != NULL) 588 588 return result; 589 }590 589 } 590 591 591 return NULL; 592 }592 } 593 593 594 594 // Managing the store … … 596 596 { 597 597 if ((proto == NULL) || name.empty()) 598 return NULL;598 return NULL; 599 599 600 600 // Create account name … … 623 623 if (!directory) 624 624 { 625 }625 } 626 626 627 627 // Now insert into parent … … 682 682 // Now read the calendar data 683 683 node->GetProtocol()->ReadFullCalendar(*node, *cal); 684 }685 684 } 685 686 686 // Change the name in the calendar 687 687 cal->EditName(node->GetShortName()); … … 704 704 { 705 705 node->SetCalendar(NULL); 706 }707 706 } 707 708 708 CLOG_LOGRETHROW; 709 709 throw; … … 711 711 #endif 712 712 } 713 713 714 714 // Now adjust node position 715 715 … … 725 725 parent_node->AddChild(node, true); 726 726 Broadcast_Message(eBroadcast_InsertNode, node); 727 }727 } 728 728 729 729 // Make sure protocol list is in sync after rename … … 778 778 if (found == mAdbkSearch.end()) 779 779 mAdbkSearch.push_back(adbk); 780 }781 }780 } 781 } 782 782 else 783 783 {