From 38234003909143a08d5b6cc56dab9bd47908d311 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Thu, 26 Jul 2007 14:27:18 +0000 Subject: Sort the layout to save by refnum. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4586 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/windows-layout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/fe-common') diff --git a/src/fe-common/core/windows-layout.c b/src/fe-common/core/windows-layout.c index 0a5bb50a..d17d651e 100644 --- a/src/fe-common/core/windows-layout.c +++ b/src/fe-common/core/windows-layout.c @@ -219,11 +219,14 @@ static void window_save(WINDOW_REC *window, CONFIG_NODE *node) void windows_layout_save(void) { CONFIG_NODE *node; + GSList *sorted; iconfig_set_str(NULL, "windows", NULL); node = iconfig_node_traverse("windows", TRUE); - g_slist_foreach(windows, (GFunc) window_save, node); + sorted = windows_get_sorted(); + g_slist_foreach(sorted, (GFunc) window_save, node); + g_slist_free(sorted); signal_emit("layout save", 0); printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, -- cgit v1.2.3