diff options
| author | Vincent Richard <[email protected]> | 2004-12-17 17:02:18 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2004-12-17 17:02:18 +0000 |
| commit | 90b9650ede514a6cbc01a7e7501df3c9afed7c8f (patch) | |
| tree | 0de1be429125a4bae8740be5cbec9bafbe248aaf /src/messaging/POP3Folder.cpp | |
| parent | Updated function doc. (diff) | |
| download | vmime-90b9650ede514a6cbc01a7e7501df3c9afed7c8f.tar.gz vmime-90b9650ede514a6cbc01a7e7501df3c9afed7c8f.zip | |
Fixed bugs with message count notification.
Diffstat (limited to 'src/messaging/POP3Folder.cpp')
| -rw-r--r-- | src/messaging/POP3Folder.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/messaging/POP3Folder.cpp b/src/messaging/POP3Folder.cpp index e820ab3f..e45e811c 100644 --- a/src/messaging/POP3Folder.cpp +++ b/src/messaging/POP3Folder.cpp @@ -634,14 +634,21 @@ void POP3Folder::status(int& count, int& unseen) for (int i = oldCount + 1, j = 0 ; i <= count ; ++i, ++j) nums[j] = i; + // Notify message count changed events::messageCountEvent event(this, events::messageCountEvent::TYPE_ADDED, nums); + notifyMessageCount(event); + + // Notify folders with the same path for (std::list <POP3Folder*>::iterator it = m_store->m_folders.begin() ; it != m_store->m_folders.end() ; ++it) { - if ((*it)->getFullPath() == m_path) + if ((*it) != this && (*it)->getFullPath() == m_path) { (*it)->m_messageCount = count; + + events::messageCountEvent event(*it, events::messageCountEvent::TYPE_ADDED, nums); + (*it)->notifyMessageCount(event); } } |
