Make sure to reset the db id (in the sqlite index) otherwise

it will be reused in the target folder, on move, and overwrite the entry
for any existing entry at that row, thereby bringing the index out of sync
with reality.

svn path=/trunk/KDE/kdepim/; revision=812643
wilder-work
Till Adam 18 years ago
parent 7c56fe6b9e
commit 679bb9f5b9
  1. 3
      kmfoldermbox.cpp

@ -1192,6 +1192,9 @@ if( fileD1.open( QIODevice::WriteOnly ) ) {
// write index entry if desired
if ( mAutoCreateIndex ) {
#ifdef KMAIL_SQLITE_INDEX
// reset the db id, in case we have one, we are about to change folders
// and can't reuse it there
aMsg->setDbId( 0 );
#else
assert( mIndexStream != 0 );
clearerr( mIndexStream );

Loading…
Cancel
Save