diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-10 03:12:22 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-10 03:12:22 +0000 |
commit | 89abfaf9cfe81846223e5e72324d7f812e60fdfa (patch) | |
tree | da404d66b5ffca8e5e24e2ce338ff5cd7cf1ad3b /src/fe-common | |
parent | 980d6ca3fdac3fb0da21f61d8de42db061b136bf (diff) | |
download | irssi-89abfaf9cfe81846223e5e72324d7f812e60fdfa.zip |
sticky_refnum is now saved and restored
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1197 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/window-save.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fe-common/core/window-save.c b/src/fe-common/core/window-save.c index 1a55d00e..d5ffb1cf 100644 --- a/src/fe-common/core/window-save.c +++ b/src/fe-common/core/window-save.c @@ -92,7 +92,8 @@ void windows_restore(void) window = window_create(NULL, TRUE); window_set_refnum(window, atoi(node->key)); - window_set_name(window, config_node_get_str(node, "name", NULL)); + window->sticky_refnum = config_node_get_bool(node, "sticky_refnum", FALSE); + window_set_name(window, config_node_get_str(node, "name", NULL)); window_set_level(window, level2bits(config_node_get_str(node, "level", ""))); window->servertag = g_strdup(config_node_get_str(node, "servertag", NULL)); @@ -144,6 +145,9 @@ static void window_save(WINDOW_REC *window, CONFIG_NODE *node) ltoa(refnum, window->refnum); node = config_node_section(node, refnum, NODE_TYPE_BLOCK); + if (window->sticky_refnum) + iconfig_node_set_bool(node, "sticky_refnum", TRUE); + if (window->name != NULL) iconfig_node_set_str(node, "name", window->name); if (window->servertag != NULL) |