mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(check_panel_timestamp): constify arguments, simplify checks.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
9584973453
commit
41fadeffe7
@ -460,21 +460,11 @@ toggle_panels_split (void)
|
|||||||
#ifdef ENABLE_VFS
|
#ifdef ENABLE_VFS
|
||||||
/* event helper */
|
/* event helper */
|
||||||
static gboolean
|
static gboolean
|
||||||
check_panel_timestamp (const WPanel * panel, panel_view_mode_t mode, struct vfs_class *vclass,
|
check_panel_timestamp (const WPanel * panel, panel_view_mode_t mode, const struct vfs_class *vclass,
|
||||||
vfsid id)
|
const vfsid id)
|
||||||
{
|
{
|
||||||
if (mode == view_listing)
|
return (mode != view_listing || (vfs_path_get_last_path_vfs (panel->cwd_vpath) == vclass
|
||||||
{
|
&& vfs_getid (panel->cwd_vpath) == id));
|
||||||
const struct vfs_class *me;
|
|
||||||
|
|
||||||
me = vfs_path_get_last_path_vfs (panel->cwd_vpath);
|
|
||||||
if (me != vclass)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
if (vfs_getid (panel->cwd_vpath) != id)
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user