[evolution] Bug 768449 - “Message/Open in New Window” marks message as read when shouldn't
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 768449 - “Message/Open in New Window” marks message as read when shouldn't
- Date: Mon, 18 Jul 2016 10:41:24 +0000 (UTC)
commit 1f9f2db6ac57a5fc29f35876304ebd70ef658f99
Author: Milan Crha <mcrha redhat com>
Date: Mon Jul 18 12:41:00 2016 +0200
Bug 768449 - “Message/Open in New Window” marks message as read when shouldn't
mail/e-mail-browser.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c
index e8115d9..1130c9c 100644
--- a/mail/e-mail-browser.c
+++ b/mail/e-mail-browser.c
@@ -278,6 +278,7 @@ mail_browser_message_selected_cb (EMailBrowser *browser,
info = camel_folder_get_message_info (folder, uid);
if (info != NULL) {
+ GSettings *settings;
EMailDisplay *display;
const gchar *title;
@@ -290,8 +291,10 @@ mail_browser_message_selected_cb (EMailBrowser *browser,
gtk_window_set_title (GTK_WINDOW (browser), title);
gtk_widget_grab_focus (GTK_WIDGET (display));
- camel_message_info_set_flags (
- info, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
+ settings = e_util_ref_settings ("org.gnome.evolution.mail");
+ if (g_settings_get_boolean (settings, "mark-seen"))
+ camel_message_info_set_flags (info, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
+ g_clear_object (&settings);
camel_message_info_unref (info);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]