I think it's better not to mark messages as dirty when they're not really

dirty. This way, index files are only written when they should, and not
everytime you leave a folder (as was happening before this patch).

svn path=/trunk/kdenetwork/kmail/; revision=75997
wilder-work
Antonio Larrosa Jimenez 26 years ago
parent bf34714220
commit e1d8883b01
  1. 2
      kmmsgbase.cpp

@ -74,6 +74,7 @@ bool KMMsgBase::isMessage(void) const
//-----------------------------------------------------------------------------
void KMMsgBase::setStatus(const KMMsgStatus aStatus)
{
if (mStatus == aStatus) return;
if (mParent) mParent->msgStatusChanged( mStatus, aStatus );
mStatus = aStatus;
mDirty = TRUE;
@ -156,6 +157,7 @@ const char* KMMsgBase::statusToStr(KMMsgStatus aStatus)
//-----------------------------------------------------------------------------
void KMMsgBase::setDate(time_t aUnixTime)
{
if (mDate == aUnixTime) return;
mDate = aUnixTime;
mDirty = TRUE;
}

Loading…
Cancel
Save