talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit f19a85fc671e7afc72689e3d417b03cd52e34777
parent 78b5d80a0b371d3091b0a0ff85704e3d516222a6
Author: Colin Leroy <colin@colino.net>
Date:   Fri, 23 May 2014 11:29:16 +0200

Remove draft_timeout_tag too before destroying

Diffstat:
Msrc/compose.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/compose.c b/src/compose.c @@ -8690,6 +8690,12 @@ static void compose_destroy(Compose *compose) compose->deferred_destroy = TRUE; return; } + + if (compose->draft_timeout_tag >= 0) { /* CLAWS: disable draft timeout */ + g_source_remove(compose->draft_timeout_tag); + compose->draft_timeout_tag = COMPOSE_DRAFT_TIMEOUT_UNSET; + } + /* NOTE: address_completion_end() does nothing with the window * however this may change. */ address_completion_end(compose->window);