Do the msgdict size remembering in a more sensible place and way.

svn path=/trunk/KDE/kdepim/; revision=431412
wilder-work
Till Adam 21 years ago
parent cd74d55c19
commit c9fa67fedf
  1. 6
      kmmsgdict.cpp

@ -159,6 +159,9 @@ KMMsgDict::KMMsgDict()
KMMsgDict::~KMMsgDict()
{
// Remember how many items we put into the dict this time so we can create
// it with an appropriate size next time.
GlobalSettings::setMsgDictSizeHint( dict->size() );
delete dict;
}
@ -423,9 +426,6 @@ int KMMsgDict::readFolderIds( FolderStorage& storage )
rentry->set(index, entry);
}
// Remember how many items we put into the dict this time so we can create
// it with an appropriate size next time.
GlobalSettings::setMsgDictSizeHint( GlobalSettings::msgDictSizeHint() + count );
fclose(fp);
storage.setRDict(rentry);

Loading…
Cancel
Save