diff options
author | Peter Williams <peterw@ximian.com> | 2002-08-27 05:19:07 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2002-08-27 05:19:07 +0800 |
commit | b1971b08cd80e57bf20b1a4d7e289de22bff54de (patch) | |
tree | 4926923613c9b5e085cf719d4508c5f2513ef63f /mail/mail-callbacks.c | |
parent | 245ac4505dd747aabaf5458fed6014f0b9b5ff1d (diff) | |
download | gsoc2013-evolution-b1971b08cd80e57bf20b1a4d7e289de22bff54de.tar.gz gsoc2013-evolution-b1971b08cd80e57bf20b1a4d7e289de22bff54de.tar.zst gsoc2013-evolution-b1971b08cd80e57bf20b1a4d7e289de22bff54de.zip |
Logic change for when untoggling a message from deleted-dom.
2002-08-26 Peter Williams <peterw@ximian.com>
* mail-callbacks.c (toggle_flags): Logic change for when untoggling
a message from deleted-dom.
svn path=/trunk/; revision=17869
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index a72de4389b..4a0dd5646d 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1997,8 +1997,10 @@ toggle_flags (FolderBrowser *fb, guint32 mask) mask |= CAMEL_MESSAGE_DELETED; } - /* if we're flagging a message deleted, always mark it seen too */ - if (mask & flags & CAMEL_MESSAGE_DELETED) { + /* if we're flagging a message deleted, mark it seen. If + * we're undeleting it, we also want it to be seen, so always do this. + */ + if (mask & CAMEL_MESSAGE_DELETED) { flags |= CAMEL_MESSAGE_SEEN; mask |= CAMEL_MESSAGE_SEEN; } |