From e5ddadd9177a0a23fa549343ba1076c7708dcdcd Mon Sep 17 00:00:00 2001 From: David Faure Date: Thu, 1 Dec 2005 19:43:42 +0000 Subject: [PATCH] Fixed compilation; but we need a writeEntry(const QByteArray&). svn path=/trunk/KDE/kdepim/; revision=484750 --- popaccount.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/popaccount.cpp b/popaccount.cpp index 7973b8f92..35bc840e4 100644 --- a/popaccount.cpp +++ b/popaccount.cpp @@ -816,7 +816,14 @@ void PopAccount::saveUidList() KConfig config( seenUidList ); config.writeEntry( "seenUidList", uidsOfNextSeenMsgs ); config.writeEntry( "seenUidTimeList", seenUidTimeList ); - config.writeEntry( "downloadLater", mHeaderLaterUids.values() ); + QByteArray laterList; + laterList.reserve( mHeaderLaterUids.count() * 5 ); // what's the average size of a uid? + foreach( const QByteArray& uid, mHeaderLaterUids.values() ) { + if ( !laterList.isEmpty() ) + laterList += ','; + laterList.append( uid ); + } + config.writeEntry( "downloadLater", laterList.constData() ); config.sync(); }