rem: void KMFolderCachedImap::resetSyncState() { mSubfoldersForSync.clear(); mSyncState = SYNC_STATE_INITIAL; close();  ProgressItem *progressItem = mAccount->mailCheckProgressItem(); QString str = i18n("Aborted"); if (progressItem) progressItem->setStatus( str ); emit statusMsg( str ); }
add: void resetSyncState() { mSyncState = SYNC_STATE_INITIAL; }
context: void KMFolderCachedImap::resetSyncState(){  mSubfoldersForSync.clear();  mSyncState = SYNC_STATE_INITIAL;  close();  // Don't use newState here, it would revert to mProgress (which is < current value when listing messages)  ProgressItem *progressItem = mAccount->mailCheckProgressItem();  QString str = i18n("Aborted");  if (progressItem)     progressItem->setStatus( str );  emit statusMsg( str );}