[Composer] Better care of autosave snapshot after WebKitWebProcess crash
commitd93768c9213584a4809af17d42bbc441e11a365e
authorMilan Crha <mcrha@redhat.com>
Thu, 7 Dec 2017 17:29:38 +0000 (7 18:29 +0100)
committerMilan Crha <mcrha@redhat.com>
Thu, 7 Dec 2017 17:29:38 +0000 (7 18:29 +0100)
tree6dd291894763d5f7f847f98a82f3077b67a0ffa8
parentcebbf6fdfcc7eb58aa8db7d3274b2e463058d592
[Composer] Better care of autosave snapshot after WebKitWebProcess crash

This is related to bug 791291, but doesn't fix it, it rather makes sure that:
a) any autosave snapshot is not overwritten with empty body of the message
b) the snapshot is not deleted after "broken" composer close
c) it's offered to recover the last snapshot (if exists) on close of the composer.

This all makes sure that users will not lose all their work, only up
to one minute of time, which is the interval of the autosave.
src/composer/e-composer-actions.c
src/composer/e-composer-private.h
src/composer/e-msg-composer.c
src/composer/mail-composer.error.xml
src/e-util/e-content-editor.c
src/e-util/e-content-editor.h
src/modules/composer-autosave/e-autosave-utils.c
src/modules/composer-autosave/e-autosave-utils.h
src/modules/composer-autosave/e-composer-autosave.c
src/modules/composer-autosave/e-composer-registry.c
src/modules/webkit-editor/e-webkit-editor.c