Fix restore session

wilder-work
Montel Laurent 15 years ago
parent 39a3e01ee3
commit 271014a8a6
  1. 1
      kmcomposewin.cpp
  2. 1
      kmkernel.cpp

@ -1668,7 +1668,6 @@ void KMComposeWin::setMsg( const KMime::Message::Ptr &newMsg, bool mayAutoSign,
// honor "keep reply in this folder" setting even when the identity is changed later on
mPreventFccOverwrite = ( !kmailFcc.isEmpty() && ident.fcc() != kmailFcc );
autoSaveMessage( true ); //Force save message otherwise restore session will not work
}
void KMComposeWin::setAutoSaveFileName(const QString& fileName)

@ -1099,6 +1099,7 @@ void KMKernel::recoverDeadLetters()
KMail::Composer * autoSaveWin = KMail::makeComposer();
autoSaveWin->setMsg( autoSaveMessage, false );
autoSaveWin->setAutoSaveFileName( filename );
autoSaveWin->autoSaveMessage( true );//Force save message otherwise restore session will not work
autoSaveWin->show();
autoSaveFile.close();
} else {

Loading…
Cancel
Save