diff options
Diffstat (limited to 'src/addressList.cpp')
-rw-r--r-- | src/addressList.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/addressList.cpp b/src/addressList.cpp index 85178961..fc9548b1 100644 --- a/src/addressList.cpp +++ b/src/addressList.cpp @@ -119,7 +119,11 @@ addressList& addressList::operator=(const addressList& other) addressList& addressList::operator=(const mailboxList& other) { - copyFrom(other); + removeAllAddresses(); + + for (int i = 0 ; i < other.getMailboxCount() ; ++i) + m_list.push_back(other.getMailboxAt(i)->clone()); + return (*this); } |