Don't crash when inline-forwarding multiple mails.

BUG: 163159

svn path=/trunk/KDE/kdepim/; revision=818469
wilder-work
Thomas McGuire 18 years ago
parent 2c334473f3
commit 41aebb7583
  1. 8
      kmcommands.cpp

@ -1313,17 +1313,13 @@ KMCommand::Result KMForwardCommand::execute()
fwdMsg->initHeader(id);
fwdMsg->setAutomaticFields(true);
fwdMsg->setCharset("utf-8");
// fwdMsg->setBody(msgText);
for ( QList<KMMessage*>::const_iterator it2 = linklist.begin();
it2 != linklist.end(); ++it2 )
{
KMMessage *msg = *it;
foreach( KMMessage *msg, linklist ) {
TemplateParser parser( fwdMsg, TemplateParser::Forward,
msg->body(), false, false, false );
parser.process( msg, 0, true );
fwdMsg->link( (*it), MessageStatus::statusForwarded() );
fwdMsg->link( msg, MessageStatus::statusForwarded() );
}
KCursorSaver busy(KBusyPtr::busy());

Loading…
Cancel
Save