diff --git a/kmcommands.cpp b/kmcommands.cpp index a14652134..2b1bbaed4 100644 --- a/kmcommands.cpp +++ b/kmcommands.cpp @@ -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 diff --git a/kmcommands.h b/kmcommands.h index 3876ee99e..350cb2135 100644 --- a/kmcommands.h +++ b/kmcommands.h @@ -291,6 +291,7 @@ public: private: bool mFixedFont; + bool mMsgWasComplete; }; class KMSaveMsgCommand : public KMCommand