when renaming folder, only update summaryview folder name if the current folder is...
authorPaul <paul@claws-mail.org>
Fri, 27 Jan 2017 15:32:11 +0000 (15:32 +0000)
committerPaul <paul@claws-mail.org>
Fri, 27 Jan 2017 15:32:11 +0000 (15:32 +0000)
patch by Olivier Brunel

src/summaryview.c

index 41006d2..77ad51a 100644 (file)
@@ -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);