[Users] [PATCH 1/4] summaryview: Minor fix

Olivier Brunel jjk at jjacky.com
Sun Jan 15 19:14:18 CET 2017


Update current folder name only if the renamed folder is the current one

Signed-off-by: Olivier Brunel <jjk at jjacky.com>
---
 src/summaryview.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/summaryview.c b/src/summaryview.c
index ff511add1..9d88202a0 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -8082,7 +8082,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);
-- 
2.11.0




More information about the Users mailing list