Fix crash due to calling serverSyncInternal() too often/too early.

Patch by Frank.

Kolab issue 2270

svn path=/branches/kdepim/enterprise/kdepim/; revision=744689
wilder-work
Volker Krause 19 years ago
parent ebc763e7cc
commit 1e4e1ba258
  1. 7
      kmfoldercachedimap.cpp

@ -2037,8 +2037,9 @@ void KMFolderCachedImap::slotListResult( const QStringList& folderNames,
}
mProgress += 5;
if ( mToBeDeletedAfterRescue.isEmpty() )
serverSyncInternal();
// just in case there is nothing to rescue
slotRescueDone( 0 );
}
// This synchronizes the local folders as needed (creation/deletion). No network communication here.
@ -2946,8 +2947,6 @@ void KMFolderCachedImap::rescueUnsyncedMessagesAndDeleteFolder( KMFolder *folder
node = folder->child()->next();
}
}
if ( root )
slotRescueDone( 0 ); // just in case there is nothing to rescue
}
void KMFolderCachedImap::slotRescueDone(KMCommand * command)

Loading…
Cancel
Save