mirror of
https://github.com/irssi/irssi.git
synced 2025-04-26 04:51:11 -05:00
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'.
This commit is contained in:
parent
4af3a4731e
commit
d964950e5d
@ -168,12 +168,12 @@ static void sig_layout_save_item(WINDOW_REC *window, WI_ITEM_REC *item,
|
|||||||
chat_protocol_find_id(item->chat_type);
|
chat_protocol_find_id(item->chat_type);
|
||||||
if (proto != NULL)
|
if (proto != NULL)
|
||||||
iconfig_node_set_str(subnode, "chat_type", proto->name);
|
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) {
|
if (item->server != NULL) {
|
||||||
iconfig_node_set_str(subnode, "tag", item->server->tag);
|
iconfig_node_set_str(subnode, "tag", item->server->tag);
|
||||||
if (IS_CHANNEL(item)) {
|
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)
|
if (rec != NULL)
|
||||||
rec->sticky = TRUE;
|
rec->sticky = TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user