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/POP3Folder.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/POP3Folder.cpp')
-rw-r--r-- | src/messaging/POP3Folder.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/messaging/POP3Folder.cpp b/src/messaging/POP3Folder.cpp index 61e3475b..1bccf9ea 100644 --- a/src/messaging/POP3Folder.cpp +++ b/src/messaging/POP3Folder.cpp @@ -30,7 +30,9 @@ namespace messaging { POP3Folder::POP3Folder(const folder::path& path, POP3Store* store) - : m_store(store), m_path(path), m_name(path.getLastComponent()), m_mode(-1), m_open(false) + : m_store(store), m_path(path), + m_name(path.isEmpty() ? folder::path::component("") : path.getLastComponent()), + m_mode(-1), m_open(false) { m_store->registerFolder(this); } |