when renaming folder, only update summaryview folder name if the current folder is being renamed

patch by Olivier Brunel
This commit is contained in:
Paul 2017-01-27 15:32:11 +00:00
parent ce16e266f5
commit deb42e32ff

View 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);