Fix for 5.0 SF1in bug 299978: html compose fails: can't save file:///Untitled

Ignore autosave code in fe_EditorCleanup() if the context is for a
MWContextMessageComposition.  Reviewed by akkana.
This commit is contained in:
kin 1998-07-14 01:29:37 +00:00
Родитель 414e173920
Коммит 34b1a3526c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -932,7 +932,8 @@ fe_EditorCleanup(MWContext* context)
* If they have autosave on, try to do a save. Don't do it
* for a new doc, as that'll mean dialogs, and .....
*/
if (!EDT_IS_NEW_DOCUMENT(context) &&
if (context->type != MWContextMessageComposition &&
!EDT_IS_NEW_DOCUMENT(context) &&
(!EDT_IsBlocked(context) && EDT_DirtyFlag(context))) {
fe_EditorPreferencesGetAutoSave(context, &as_enabled, &as_time);
if (as_enabled)