[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/kmail
From:       Thomas McGuire <Thomas.McGuire () gmx ! net>
Date:       2008-02-29 22:09:01
Message-ID: 1204322941.044810.16531.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 780745 by tmcguire:

Use isEmpty() instead of isNull() to determine whether the body needs to
be loaded on demand. The body simply never is null, instead it often is assigned
to an empty string, for example in KMMessage::bodyPart().

This fixes saving attachment with online IMAP and loading on demand.

CCMAIL: huntedhacker@tiscali.co.uk



 M  +1 -1      kmmsgpart.h  


--- trunk/KDE/kdepim/kmail/kmmsgpart.h #780744:780745
@@ -193,7 +193,7 @@
   void setPartSpecifier( const QString & part ) { mPartSpecifier = part; }
 
   /** If this part is complete (contains a body) */
-  bool isComplete() { return (!mBody.isNull()); }
+  bool isComplete() { return !mBody.isEmpty(); }
 
   /** Returns the parent part */
   KMMessagePart* parent() { return mParent; }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic