Ticket #3810: keep panelization while switching panel listing mode.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2017-04-18 09:52:17 +03:00
parent e4983a18e8
commit edb51c4457

View File

@ -508,17 +508,6 @@ switch_to_listing (int panel_index)
{
if (get_display_type (panel_index) != view_listing)
set_display_type (panel_index, view_listing);
else
{
WPanel *p;
p = PANEL (get_panel_widget (panel_index));
if (p->is_panelized)
{
p->is_panelized = FALSE;
panel_reload (p);
}
}
}
/* --------------------------------------------------------------------------------------------- */
@ -1586,7 +1575,16 @@ quick_cmd_no_menu (void)
void
listing_cmd (void)
{
WPanel *p;
switch_to_listing (MENU_PANEL_IDX);
p = PANEL (get_panel_widget (MENU_PANEL_IDX));
if (p->is_panelized)
{
p->is_panelized = FALSE;
panel_reload (p);
}
}
/* --------------------------------------------------------------------------------------------- */