mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-07 10:54:29 +03:00
(listing_cmd): reset panel filter.
When change panel mode to listing one, in addition to reset of panelization, reset panel filter too. Optimization: get rid of double panel reload. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
edb51c4457
commit
34aaab47ba
@ -1580,11 +1580,9 @@ listing_cmd (void)
|
||||
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);
|
||||
}
|
||||
|
||||
p->is_panelized = FALSE;
|
||||
set_panel_filter_to (p, NULL); /* including panel reload */
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user