[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_2_BRANCH: kdepim/kmail
From: Carsten Burghardt <cb () magic-shop ! de>
Date: 2004-02-24 23:29:28
Message-ID: 20040224232928.5234F993A () office ! kde ! org
[Download RAW message or body]
CVS commit by burghard:
Restore the original complete-state.
CCMAIL: 75983-done@bugs.kde.org
M +4 -1 kmcommands.cpp 1.99.2.4
M +1 -0 kmcommands.h 1.26.4.1
--- kdepim/kmail/kmcommands.cpp #1.99.2.3:1.99.2.4
@@ -1704,4 +1704,5 @@ KMSaveAttachmentsCommand::KMSaveAttachme
{
// do not load the complete message but only parts
+ mMessageComplete = msg->isComplete();
msg->setComplete( true );
setDeletesItself( true );
@@ -1710,4 +1711,7 @@ KMSaveAttachmentsCommand::KMSaveAttachme
void KMSaveAttachmentsCommand::execute()
{
+ QPtrList<KMMessage> lst = retrievedMsgs();
+ if ( lst.count() == 1 ) // restore original complete state
+ lst.first()->setComplete(mMessageComplete);
if ( mAttachments.count() > 0 )
{
@@ -1716,5 +1720,4 @@ void KMSaveAttachmentsCommand::execute()
}
KMMessage *msg = 0;
- QPtrList<KMMessage> lst = retrievedMsgs();
QPtrListIterator<KMMessage> itr( lst );
--- kdepim/kmail/kmcommands.h #1.26:1.26.4.1
@@ -301,4 +301,5 @@ private:
QPtrList<partNode> mAttachments;
bool mEncoded;
+ bool mMessageComplete;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic