Ticket #3700: fix segfault after switch left panel to info mode.
commit716479ba4fc7da1f6ce2e4ab36ced3d86f1fffc5
authorAndrew Borodin <aborodin@vmail.ru>
Tue, 11 Oct 2016 07:42:44 +0000 (11 10:42 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 23 Oct 2016 05:08:15 +0000 (23 08:08 +0300)
tree7609a8444516da7c2009dbc638684afe2477b4be
parent755447b96ed57ba69c624c1d65e1dc873f0ab11c
Ticket #3700: fix segfault after switch left panel to info mode.

(widget_replace): if new widget cannot take focus, move focus to other widget
before widget replacement.

In our case, the focused file panel is replaced by Info one. Info panel
a) isn't selectable (it never takes focus) and b) uses CWD of current
panel. Therefore focus must be moved to other file panel to make it
current and correctly set up it's CWD before first draw of Info panel.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
lib/widget/widget-common.c