Calling getAttributes() does not require the folder to be open.

This commit is contained in:
Vincent Richard 2014-01-19 17:39:49 +01:00
parent 6eaf199c69
commit 2e042dd65f
2 changed files with 0 additions and 6 deletions

View File

@ -92,9 +92,6 @@ int IMAPFolder::getMode() const
const folderAttributes IMAPFolder::getAttributes() const folderAttributes IMAPFolder::getAttributes()
{ {
if (!isOpen())
throw exceptions::illegal_state("Folder not open");
// Root folder // Root folder
if (m_path.isEmpty()) if (m_path.isEmpty())
{ {

View File

@ -83,9 +83,6 @@ int POP3Folder::getMode() const
const folderAttributes POP3Folder::getAttributes() const folderAttributes POP3Folder::getAttributes()
{ {
if (!isOpen())
throw exceptions::illegal_state("Folder not open");
folderAttributes attribs; folderAttributes attribs;
if (m_path.isEmpty()) if (m_path.isEmpty())