Close the status window again when an error occurred durring a message fetch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40865 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c45c76e658
commit
548402bb7c
|
@ -70,7 +70,7 @@ DispatcherIMAPListener::NewMessagesToFetch(int32 nMessages)
|
||||||
void
|
void
|
||||||
DispatcherIMAPListener::FetchEnd()
|
DispatcherIMAPListener::FetchEnd()
|
||||||
{
|
{
|
||||||
fProtocol.ResetProgress();
|
fProtocol.ReportProgress(0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -318,7 +318,8 @@ FetchMessageCommand::FetchMessageCommand(IMAPMailbox& mailbox,
|
||||||
fMessage(firstMessage),
|
fMessage(firstMessage),
|
||||||
fEndMessage(lastMessage),
|
fEndMessage(lastMessage),
|
||||||
fOutData(NULL),
|
fOutData(NULL),
|
||||||
fFetchBodyLimit(fetchBodyLimit)
|
fFetchBodyLimit(fetchBodyLimit),
|
||||||
|
fHandled(false)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -326,7 +327,8 @@ FetchMessageCommand::FetchMessageCommand(IMAPMailbox& mailbox,
|
||||||
|
|
||||||
FetchMessageCommand::~FetchMessageCommand()
|
FetchMessageCommand::~FetchMessageCommand()
|
||||||
{
|
{
|
||||||
|
if (!fHandled)
|
||||||
|
fIMAPMailbox.Listener().FetchEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -407,6 +409,8 @@ FetchMessageCommand::Handle(const BString& response)
|
||||||
BString lastLine;
|
BString lastLine;
|
||||||
fConnectionReader.GetNextLine(lastLine);
|
fConnectionReader.GetNextLine(lastLine);
|
||||||
|
|
||||||
|
fHandled = true;
|
||||||
|
|
||||||
bool bodyIsComing = true;
|
bool bodyIsComing = true;
|
||||||
if (fFetchBodyLimit >= 0 && fFetchBodyLimit <= messageSize)
|
if (fFetchBodyLimit >= 0 && fFetchBodyLimit <= messageSize)
|
||||||
bodyIsComing = false;
|
bodyIsComing = false;
|
||||||
|
|
|
@ -140,6 +140,7 @@ private:
|
||||||
int32 fEndMessage;
|
int32 fEndMessage;
|
||||||
BPositionIO* fOutData;
|
BPositionIO* fOutData;
|
||||||
int32 fFetchBodyLimit;
|
int32 fFetchBodyLimit;
|
||||||
|
bool fHandled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue