mirror of https://github.com/MidnightCommander/mc
Ticket #4524: code cleanup before 4.8.32 release.
(set_panel_formats): fix coding style. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
9428697134
commit
34109d5a25
|
@ -4704,15 +4704,15 @@ set_panel_formats (WPanel * p)
|
|||
|
||||
panel_update_cols (WIDGET (p), p->frame_size);
|
||||
|
||||
if (retcode)
|
||||
if (retcode != 0)
|
||||
message (D_ERROR, _("Warning"),
|
||||
_("User supplied format looks invalid, reverting to default."));
|
||||
if (retcode & 0x01)
|
||||
if ((retcode & 0x01) != 0)
|
||||
{
|
||||
g_free (p->user_format);
|
||||
p->user_format = g_strdup (DEFAULT_USER_FORMAT);
|
||||
}
|
||||
if (retcode & 0x02)
|
||||
if ((retcode & 0x02) != 0)
|
||||
{
|
||||
g_free (p->user_status_format[p->list_format]);
|
||||
p->user_status_format[p->list_format] = g_strdup (DEFAULT_USER_FORMAT);
|
||||
|
|
Loading…
Reference in New Issue