From 33e7ad43d6ccf2b6089686ef4a190426ec04bea9 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 29 Mar 2013 07:59:23 +0100 Subject: [PATCH] core: use layout saved when option weechat.look.save_layout_on_exit is enabled (so it is automatically restored when WeeChat restarts) --- src/gui/gui-layout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/gui-layout.c b/src/gui/gui-layout.c index 124dd42eb..a866393c9 100644 --- a/src/gui/gui-layout.c +++ b/src/gui/gui-layout.c @@ -790,6 +790,9 @@ gui_layout_save_on_exit () default: break; } + + /* use layout, so it will be used after restart of WeeChat */ + gui_layout_current = ptr_layout; } /*