[Commits] [SCM] claws branch, master, updated. 3.14.1-163-gdeb42e3

claws at claws-mail.org claws at claws-mail.org
Fri Jan 27 16:32:16 CET 2017


The branch, master has been updated
       via  deb42e32ffb6d2ac0635c58eafcc6d303ef538c1 (commit)
      from  ce16e266f536ca4ad3391a2885ea9bd972bcb556 (commit)

Summary of changes:
 src/summaryview.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit deb42e32ffb6d2ac0635c58eafcc6d303ef538c1
Author: Paul <paul at claws-mail.org>
Date:   Fri Jan 27 15:32:11 2017 +0000

    when renaming folder, only update summaryview folder name if the current folder is being renamed
    
    patch by Olivier Brunel

diff --git a/src/summaryview.c b/src/summaryview.c
index 41006d2..77ad51a 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -8081,7 +8081,8 @@ static gboolean summary_update_folder_item_hook(gpointer source, gpointer data)
 	cm_return_val_if_fail(hookdata->item != NULL, FALSE);
 	cm_return_val_if_fail(summaryview != NULL, FALSE);
 
-	if (hookdata->update_flags & F_ITEM_UPDATE_NAME) {
+	if (hookdata->item == summaryview->folder_item &&
+	    hookdata->update_flags & F_ITEM_UPDATE_NAME) {
 		gchar *name = folder_item_get_name(hookdata->item);
 		gtk_label_set_text(GTK_LABEL(summaryview->statlabel_folder), name);
 		g_free(name);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list