1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Restoring split windows layout didn't work properly (didn't I already commit

this days ago?)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1781 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-09-09 12:20:17 +00:00 committed by cras
parent 8e3005a1c1
commit be6cf00ebb

View File

@ -128,12 +128,16 @@ static void sig_layout_restore(void)
/* create a new window + mainwindow */ /* create a new window + mainwindow */
signal_emit("gui window create override", 1, signal_emit("gui window create override", 1,
GINT_TO_POINTER(0)); GINT_TO_POINTER(0));
window = window_create(NULL, TRUE); window = window_create(NULL, TRUE);
window_set_refnum(window, atoi(node->key)); window_set_refnum(window, atoi(node->key));
if (lower_size > 0) if (lower_size > 0)
mainwindow_set_size(lower_window, lower_size); mainwindow_set_size(lower_window, lower_size);
window_set_active(window);
active_mainwin = WINDOW_MAIN(window);
lower_window = WINDOW_MAIN(window); lower_window = WINDOW_MAIN(window);
lower_size = config_node_get_int(node, "lines", 0); lower_size = config_node_get_int(node, "lines", 0);
} }