Fix imap lod bug: after viewing the msg source notify the observers (in this case the readerwin)

svn path=/trunk/kdepim/; revision=373511
wilder-work
Carsten Burghardt 22 years ago
parent ec89aa9b98
commit 1ebf639898
  1. 4
      kmcommands.cpp
  2. 1
      kmcommands.h

@ -628,11 +628,15 @@ KMShowMsgSrcCommand::KMShowMsgSrcCommand( QWidget *parent,
KMMessage *msg, bool fixedFont )
:KMCommand( parent, msg ), mFixedFont( fixedFont )
{
// remember complete state
mMsgWasComplete = msg->isComplete();
}
KMCommand::Result KMShowMsgSrcCommand::execute()
{
KMMessage *msg = retrievedMessage();
if ( msg->isComplete() && !mMsgWasComplete )
msg->notify(); // notify observers as msg was transfered
QString str = msg->codec()->toUnicode( msg->asString() );
MailSourceViewer *viewer = new MailSourceViewer(); // deletes itself upon close

@ -291,6 +291,7 @@ public:
private:
bool mFixedFont;
bool mMsgWasComplete;
};
class KMSaveMsgCommand : public KMCommand

Loading…
Cancel
Save