[evolution/gnome-3-20] Bug 768449 - “Message/Open in New Window” marks message as read when shouldn't



commit f619297468446d3b1218222af6c69113343c3bc3
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 16e52ad..7a76ef7 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]