diff options
author | LemonBoy <thatlemon@gmail.com> | 2016-01-24 23:53:31 +0100 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2016-01-25 20:48:13 +0100 |
commit | d964950e5ddf9b83c67326b3a45108de4e5a44f2 (patch) | |
tree | 367bea61673c042151fe5ad6248d72670a76a11a /src | |
parent | 4af3a4731ee21f063b90fdb051efa90f6788d99f (diff) | |
download | irssi-d964950e5ddf9b83c67326b3a45108de4e5a44f2.zip |
Serialize the 'name' attribute of the CHANNEL_REC.
This way the code doing the serialization in 'sig_layout_save_item' is
now symmetric with the loading code loading the data in
'sig_layout_restore'.
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/windows-layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/core/windows-layout.c b/src/fe-common/core/windows-layout.c index 8ebcc12d..ce6b9910 100644 --- a/src/fe-common/core/windows-layout.c +++ b/src/fe-common/core/windows-layout.c @@ -168,12 +168,12 @@ static void sig_layout_save_item(WINDOW_REC *window, WI_ITEM_REC *item, chat_protocol_find_id(item->chat_type); if (proto != NULL) iconfig_node_set_str(subnode, "chat_type", proto->name); - iconfig_node_set_str(subnode, "name", item->visible_name); + iconfig_node_set_str(subnode, "name", item->name); if (item->server != NULL) { iconfig_node_set_str(subnode, "tag", item->server->tag); if (IS_CHANNEL(item)) { - rec = window_bind_add(window, item->server->tag, item->visible_name); + rec = window_bind_add(window, item->server->tag, item->name); if (rec != NULL) rec->sticky = TRUE; } |