diff options
author | Vincent Richard <[email protected]> | 2005-01-02 14:10:16 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-01-02 14:10:16 +0000 |
commit | c843f40ff3e6e28e20c3b4c68172d9e69be9885d (patch) | |
tree | 7d879f83171dfc9207b581a2d9038e093c0cc39d /src/messaging/maildirFolder.cpp | |
parent | Added unit tests for 'utility::stringProxy' and 'utility::stringUtils'. (diff) | |
download | vmime-c843f40ff3e6e28e20c3b4c68172d9e69be9885d.tar.gz vmime-c843f40ff3e6e28e20c3b4c68172d9e69be9885d.zip |
Added unit tests for 'utility::path'.
Diffstat (limited to 'src/messaging/maildirFolder.cpp')
-rw-r--r-- | src/messaging/maildirFolder.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/messaging/maildirFolder.cpp b/src/messaging/maildirFolder.cpp index 19153907..e63f6d61 100644 --- a/src/messaging/maildirFolder.cpp +++ b/src/messaging/maildirFolder.cpp @@ -36,8 +36,9 @@ namespace messaging { maildirFolder::maildirFolder(const folder::path& path, maildirStore* store) - : m_store(store), m_path(path), m_name(path.getLastComponent()), m_mode(-1), m_open(false), - m_unreadMessageCount(0), m_messageCount(0) + : m_store(store), m_path(path), + m_name(path.isEmpty() ? folder::path::component("") : path.getLastComponent()), + m_mode(-1), m_open(false), m_unreadMessageCount(0), m_messageCount(0) { m_store->registerFolder(this); } |