Calling getAttributes() does not require the folder to be open.
This commit is contained in:
parent
6eaf199c69
commit
2e042dd65f
@ -92,9 +92,6 @@ int IMAPFolder::getMode() const
|
||||
|
||||
const folderAttributes IMAPFolder::getAttributes()
|
||||
{
|
||||
if (!isOpen())
|
||||
throw exceptions::illegal_state("Folder not open");
|
||||
|
||||
// Root folder
|
||||
if (m_path.isEmpty())
|
||||
{
|
||||
|
@ -83,9 +83,6 @@ int POP3Folder::getMode() const
|
||||
|
||||
const folderAttributes POP3Folder::getAttributes()
|
||||
{
|
||||
if (!isOpen())
|
||||
throw exceptions::illegal_state("Folder not open");
|
||||
|
||||
folderAttributes attribs;
|
||||
|
||||
if (m_path.isEmpty())
|
||||
|
Loading…
Reference in New Issue
Block a user