mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
Ticket #3810: keep panelization while switching panel listing mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
e4983a18e8
commit
edb51c4457
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user